To have a Network enabled shortcode, you only need a Must Use plugin. Just create the folder /wp-content/mu-plugins
and drop your code there. From the Codex:
- Always-on, no need to enable via admin and users cannot disable by accident.
- Can be enabled simply by uploading file to the mu-plugins directory, without having to log-in.
- Loaded by PHP, in alphabetical order, before normal plugins, meaning API hooks added in an mu-plugin apply to all other plugins
even if they run hooked-functions in the global namespace.
The search and replace issue seems a bit more sensitive and maybe this plugin can be of use: Search and Replace and do it only in the post_content
field. You can also use the filter the_content
, search this site for various examples on how to deal with it.
Related Posts:
- Conditionally Loading JavaScript/CSS for Shortcodes
- Pass boolean value in shortcode
- Escaping quotes from shortcode attributes
- How to add ‘class’ attribute into shortcode [audio]?
- Automatically add this attribute to the gallery shortcode
- How to make shortcode to hide selection of text from post or page?
- How to handle valueless attributes in shortcodes?
- Get multiple shortcode attribute values
- wpautop() when shortcode attributes are on new lines break args array
- Remove width and height attributes from [gallery] output
- Add attribute to existing Shortcode
- Shortcode displays only default attribute values
- Extending Shortcode attributes
- Remove HTML content if attribute is not set / variable attributes
- getting values from a shortcode with an include
- Searching in shortcode contents
- How to make shortcode output display where I choose
- Why are Shortcodes Disabled in Widgets by Default?
- Add attribute to shortcode dynamically
- Replace / Remove Shortcode after 1st run / post
- Caption shortcodes not including caption as attribute
- Preserve shortcode content formatting
- Conditionally Loading JavaScript/CSS for Shortcodes
- Check if CTP category taxonomy is set in shortcode
- Passing variable in nested shortcodes
- How to use a nested shortcode to render the value of an attribute in parent shortcode
- Which wordpress function is the caption shortcode linked to?
- How to include shortcodes and pdfs in WordPress search without plugin?
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- the_excerpt displaying code inside style tag
- How to process a single attribute in a SQL request twice times?
- shortcode atts not working
- Second attribute of shortcode is not changing why?
- Replace custom gallery shortcode with default gallery shortcode
- Shortcode Attribute contains clone of all shortcode attributes
- How can I define the output of shortcode attribute value?
- Remove width and height attributes from [gallery] output
- shortcode appears as text in the search result
- convert it into short code & explan how? [closed]
- Enqueue Scripts / Styles when shortcode is present
- How to create a custom search for custom post type?
- What does extract( shortcode_atts( array( do?
- Stop WordPress automatically adding tags to post content
- How do I escape a ‘]’ in a short code?
- Show shortcode without executing it
- Shortcode always displaying at the top of the page
- Redirect function inside a Shortcode
- How to create a shortcode with 1 parameter (atts)
- how to show the syntax of a shortcode
- Custom shortcode being executed when saving page in wp-admin
- Change appearance of shortcode text inside editor
- current_shortcode() – detect currently used shortcode
- shortcodes output before content [duplicate]
- WordPress plugin shortcode not working
- How to add stylesheets only to pages with specific shortcode?
- Using get_option() in JavaScript
- Shortcode empty attribute
- How does a shortcode work?
- Shortcode outputs at the top of the_content
- the_excerpt and shortcodes
- Using wp_editor in shortcode
- Remove wpautop from shortcode content / remove whitespace in buffering
- Optimize shortcode callbacks
- Get current post id witout passing in shortcode
- Why are you using add_action for shortcode?
- How to get URL param to shortcode?
- How to add multiple buttons to TinyMCE?
- Check if post/page has gallery?
- Get first video from the post (both embed and video shortcodes)
- Get shortcode name from within it’s callback function? [duplicate]
- Checking if an attribute exists in a shortcode
- WordPress Multiple Category Search
- Wordspress add into my javascripts
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How do I create a Shortcode that returns text if domain is .com, not .co.uk
- Using preg_replace to separate gallery from the_content?
- Remove specific shortcode from get_the_content()
- How to display the site name in a WordPress page, or post
- Hide/show content starting in the middle of a paragraph
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- Combining shortcode and get_template_part
- How can I put a wp_redirect into a shortcode?
- Run visual composer code in php page
- short code output too early
- Shortcode in shortcode: How to append variable?
- Search multiple custom fields by using meta_query
- Remove wptexturize from a shortcode?
- How can i put an array as variable in shortcode_atts?
- Autoembeds don’t work with paragraphs
- Table of Contents with a shortcode
- Dealing with Many Meta Values, 30+
- Create custom [sourcecode] shortcode, the right way?
- TED talks shortcode not working
- Allowing shortcodes inside attributes
- What is the best way to enable nested shortcodes?
- Styling Shortcodes in Visual Editor
- Tinymce – How to hook before or after live shortcodes rendering?
- Search/Replace for editor in HTML-mode
- How to customize a shortcode using the customizer
- Native “playlist” shortcode random playing… How?