A simple solution would be to wrap it in a check for a custom $_GET
var:
if( isset( $_GET['showmethething'] ) ){
// do stuff
}
Then add that var to whatever URL you want to trigger the code:
Related Posts:
- Checking if an attribute exists in a shortcode
- Input with spaces in Shortcode attributes overwritten by defaults
- Redirect to another page using contact form 7? [closed]
- How to structure a plugin
- How to add a shortcode button to the TinyMCE editor?
- is_plugin_active function doesn’t exist
- Custom pages with plugin
- Custom media upload content for inserting custom post shortcode
- WordPress Plugin Development In MVC Architecture, How?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How do I unlock a post programmatically?
- enqueue script only if it is not already enqueue
- Create page when plugin is activated
- How can I limit functionality in one version of a plugin?
- WordPress Plugin as ‘Library’ From Abstract Application?
- How to show custom message once on plugin activation?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- How to load a new template page according to a particular URL?
- WordPress network: set themes and plugins for new blog
- Updating post meta for custom post types
- Failed to invoke other hook from the init hook
- Can a plugin add to header/footer/body content?
- REST-API: extend media-endpoint
- Is there a way to alter the order in which the plugins appear in the page?
- Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates? [closed]
- How to use get_theme_mod in gutenberg editor wordpress?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- My plugin wants to update another plugin
- Edit Yoast SEO breadcrumbs output [closed]
- How would I go about creating a user ranked post popularity page?
- Disable woocommerce cookies and delete cart data automatically
- Making a Template for a CPT created by a plugin
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Calling an attribute from a plugin shortcode
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- Creating shortcodes in plugin
- How to create a custom shortcode based on the layout?
- How to redirect users to their profile after they successfully edit their profile
- Inject HTML meta tag inside wordpress tag using add_shortcode
- Create shortcode to echo javascript
- Namespaced shortcode?
- Custom post types – remove default post supports through empty array?
- Why am I unable to load scripts in head in plugin?
- Plugin function inside custom plugin
- How can I add IP address to my post?
- Loop in elementor custom widget not working
- Minimize and Uglify WordPress Plugin Files
- How to use template inside plugin shortcode with variables for big HTML code
- shortcode – multiple instances of same parameter name in one shortcode instance
- strange shortcode error: does shortcodes requires any dependency?
- How to create a plugin that includes all the other plugins?
- Why is it important to check for isset and is_array before checking in_array in this example?
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- How to rewrite URL and get the values?
- Delete data from custom table when deleting a post
- Integrating Custom Database with WordPress
- How can I replace content on site generated from plugin without changing plugin
- unregister a sidebar widget
- How to keep plugin (media-sync) running even the tab is closed?
- list of custom post by custom field in frontend
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Shortcode do not return the right data in post
- How to call function in WordPress on button click?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Ultimate Members Default Post Layout problem
- Hide content for specific users with id
- Why is my shortcode not working?
- Rename a folder via HTML POST request
- Move plugin pages from dashboard to front-end
- working code, not working – Plugin Dev
- Cannot view Custom Post Type no matter what I try
- save short-code in my custom plugin settings problem missed something
- Custom wp_list_tables redirect on specfic page
- Paid Membership Pro displaying a user name in PHP
- Installation failed, trying to install ANY plugin
- WP Plugin CSS not being applied to page
- Echo custom admin field into a is_single()
- Modify Plugin PHP Class in Child Theme – Correct Method
- How to use custom footer template in a site-plugin?
- Creating Nested custom fields
- Confusing problem with displaying message recipient metadata
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Update Plugin Without Overwriting Custom Settings
- Hide some shortcodes on posts from back-end
- Display_rows() and column_cb() strange behaviour
- How can I pass value to function in add_menu_page?
- Why function hooked using object are executing at all time?
- Get page type to display content
- How wordpress plugin hooks works? [duplicate]
- How to generate a responsive output from plugin?
- Any way to hook into WP after a page displays?
- How to add image for custom taxonomy
- Why haven’t I see plugins using get_file_data to handle retrieving plugin version?
- How can I properly sanitize the update_option in WordPress?
- Create Custom Coupon Type
- WordPress isn’t sending welcome email with the password reset
- How to make a Template page to show the information of different things Shop and Product page?
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode