Looks like function render_content_show_hide()
is a method of class. If you want access this function directly – you can create new class instance.
If your plugin code looks like:
class Shortcode_Builder{
//...methods
public function render_content_show_hide( $attr, $content = null, $shortcode_name="" ) {
//...
}
//...other methods.
}
Create new instance
$builder = new Shortcode_Builder();
And access to your function $builder->render_content_show_hide()
Related Posts:
- Shortcodes, output buffering, and WordPress functions
- Calling a function from functions.php in custom page/ blog post
- Adding option to Gallery shortcode
- WordPress simple ‘Hello World’ plugin – problems
- How to include PHP files in plugins the correct way
- How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?
- Why does WordPress add 0 (zero) to an Ajax response?
- PHP error with shortcode handler from a class
- Passing arguments to a admin menu page callback?
- Add self-closing shortcode button to TinyMCE in WP 4.6
- function deactivate_plugins does not exist
- How can I load a page template from a plugin?
- How can I add an option to the Page Template list from a Plugin?
- Optimize shortcode callbacks
- What is an alternative method to the WordPress private _doing_it_wrong() function
- Understanding WordPress functions’ naming conventions
- How would I create a plugin for my shortcodes?
- Using OOP plugin’s methods throughout the website
- How to prevent newline from appearing in shortcode?
- Shortcode adding p and br tags
- Are shortcodes case-sensitive?
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- function triggered by “manage_users_custom_column” filter not working
- How do I make specific plugin functionality apply to different sites in a network?
- How can I change the frequency of a scheduled event?
- WordPress plugin how to run function when button is clicked
- When is it appropriate to put functions on page template vs. functions.php?
- How can i list current author’s categories?
- Filter on the_content ignores shortcodes
- Determine which theme location a wp_get_nav_menu_items is for
- When to check if a function exists
- Shortcode display outside the div
- How to create custom home page via plugin?
- stray elements
- Checking for existence of a page by title?
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- Dynamically override page.php or single.php with custom templates using function
- Is it possible for a plugin to register a page template file?
- How to get shortcode to work inside a foreach loop called within a shortcode?
- Dynamically Override Fancy Title
- Get returned variable from a function to add_shortcode function
- Problems with removing admin bar
- Problem with `wp_mail()`
- Build dynamic page from cURL (HTML page) response with plugin
- Check if I am in the Admin Panel (wp-admin)?
- What is the Difference between directly call a function and call a function using add_action?
- Call to undefined function get_blog_option()
- What is rich_editing?
- Why is my shortcode not working
- Load page template with custom content using a plugin
- Loading page template into shortcode
- What is the difference between current_page_parent and current_page_ancestor?
- Plugin development: is adding empty index.php files necessary?
- Undefined function wp_set_password
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- On plugin deactivation hide its shortcode
- Does add_filter work outside functions.php
- What function to hook for changes made in status and visibility of a post
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- Can’t get JS code to work with shortcode
- add_shortcode is not working [duplicate]
- How to Add Page Template from Plugin without Losing $this
- How can I render shortcode so that its not cached by Caching plugins?
- how to use preg_replace for wordpress video?
- Plugin Uninstall and Deactivate via Options Menu
- Dequeue theme stylesheets but keep widget styling on custom page template
- Is it possible to delay execution of shortcode output callback?
- Processing shortcodes in groups (separated by line breaks)?
- How to display non-page / post content
- How can I add a CSS rule to edit.php?
- wp_enqueue_script + wp_enqueue_style Since When
- Making Quote Plugin more efficient
- How do I write a shortcode that opens and closes?
- Widget update function not saving values
- Change template dynamically
- Using a Shortcode to Replace Themes Stylesheet?
- add more custom post types and custom role to the code
- $content variable – Is this a reserved variable for a WordPress function? – php / wordpress
- How to use WP_Term with (menu) argument in the wp_nav_menu?
- WordPress after content Hook & external template part
- Enqueue scripts in footer
- override pluggable.php functions
- Retrieve contents/page names of various pages for use in a plugin
- Can wp_list_comments output into variable?
- is user logged in not working
- Can I change header.php of current theme through a plugin function?
- get_current_screen() return null
- Gutenberg Block showing invalid content on edit
- Override class inside $atts shortcode_atts in WordPress
- Creating a shortcode, but getting tied up with OOP and Classes?
- Problem with parameters in url and pagination
- Set page template programaticlly in plugin
- creating custom function to log actions in plugin
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- Storing product price data in the database
- What is the best way to embed an JS App in a WordPress Page?