If you are targeting class method you need to pass an array where first argument is class instance and second is method name as string.
Your add_shortcode
line should look like this:
add_shortcode($this->short_code_name, array($this, 'do_frontend_shortcode'));
Related Posts:
- Shortcode Inside Class Not Working
- database interactions using OOP
- Extending the WP_Widget_Text class
- Replace shortcode in substring
- Syntax error in a shortcode function
- Check class_exists before class definition / Doxygen problem
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Add two or multiple functions in WordPress Post or Page
- WordPress error on my website
- WP Custom tables query
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- Shortcode to insert
- Creating custom Woocommerce attribute taxonomies from a plugin
- Shortcode putting html such as
- Load post content into iframe
- wp_customize_image_control default value
- Using Echo in ShortCode – Stuck
- Multiple do_shortcode($content) within one shortcode
- My shortcode is showing up twice
- WordPress menu deletes when trying to add a hook
- Overriding a theme redux file in child theme
- Widgets not showing in my custom theme
- How to find the output of contact form 7 shortcode? [closed]
- How to display custom field on homepage
- How do i get (unique) page name?
- Can A Shortcode Get HTML/Text From Content And Return It Twice With Added HTML?
- Browser title script ignoring is_page /else conditional [closed]
- Making Quote Plugin more efficient
- How to limit the content coming from wordpress shortcodes?
- How to get 2 or multiple custom post types in wordpress functions.php
- Creating bulk posts with Youtube videos
- Create shortcodes within foreach loop (using array)
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- How to display data from custom table in wordpress phpmyadmin
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- wp_ob_end_flush_all and wp_suspend_cache_addition()
- Creating own shortcode – echoeing php variable based on JS variable
- How to add a do_action on refreshing of WP customizer?
- Weird 404 URL Problem – domain name being placed at end of urls
- How create a Shortcode with hover and complex options
- Remove from shortcode
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Fatal Errors on pluggable.php
- Only first shortcode gets executed
- How to obtain the current website URL in my theme?
- echo something inside a shortcode
- Undefined method class::construct() when creating a plugin
- anyway to put inside a $outprint=sprintf()
- Hook called before text widget save
- Echo title attribute php
- str_replace with the_content is not working
- Line breaks inside shortcode variable
- Shortcode for Listing Users from Meta Value?
- Shortcode to log user into current URL
- Class property seems to lose scope, attached to save_post action?
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- wordpress admin part is not accesbile after server shifting
- Editor capabilities – admin_init
- WP insert post Redirect after function has executed
- add_action in namespace not working
- How can I add diffrent editable text fields?
- Display logged in user name and lastname on page
- Featured image in menu wordpres
- Replace background image with post thumbnail in shortcode
- Conditional formatting on data fetched from MYSQL
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Display current user metadata on WordPress page
- Need help transforming echo to return for use with shortcode
- Add Shortcode to ::before class
- Reload page with a different shortcode when a user selects from a dropdown
- Noob question: want to remove the “site identity” logo for specific part of website only
- Redirect after login depending on the URL
- Shortcode’s output to use as other shortcode’s parameter
- Real time notification on user profile after new comment
- How to add text before posts
- Shortcode Works for Logged in Users but Not Working for Guest
- How to associate dynamic PHP page for chosen WordPress tag?
- perform mathematical operation on shortcode
- Update same content in multiple posts at once?
- problem multisite with blog id
- Create dynamic content from one WP page to multiple other pages
- Property value of null when value is assigned inside a method hooked to the wp action hook
- Best way to define a database with product codes and back-end support?
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- wp_customize_image_control default value
- Do_shortcode on PHP file outside theme ALMOST works
- How to add button to top of theme customizer?
- WP white screen of death after duping a site that works fine on same server
- How can I add more code to this?
- Edit the Publish Widget Options
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- Custom Shortcode with Dynamic Button
- Shortcode for Visual Composer Grid fails turning string to integer
- New to WordPress & Freelancing [closed]
- Front-end major break after upgrade PHP 8.0 [closed]
- Add multiple HTML attributes to an Elementor button
- How to edit a widget code?