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
- Woocomerce custom add to cart button edit functionality [closed]
- How to add just one specific page to widget without plugin?
- Remove one value in dismissed_wp_pointers?
- create a select input with menus created on a custom options page
- Taxonomy linked to pages
- Append HTML Using Shortcode
- Why is file_get_contents returning page source?
- Plugin CSS not enqueing
- Customizer – Prefix Class Extension
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Accessing data from a non-WP database/table within a page content
- Different loop output every x posts in custom post type
- WordPress blog post url on category page
- How to output a PHP file values by shortcode?
- Showing content from one page on another
- Changing layout with wp_customise
- WP dynamic featured image – Can’t get second featured image url
- Converting HTML Template to WordPress Theme
- Fatal Error relating to sessions.php
- Showing a different gallery in a seperate post
- Trying to get property of non-object “ wordpress ”
- How to display posts by current user in a drop down
- Selectbox in admin panel function linking to CSS
- Can I install/embed WordPress on a ‘single page’?
- Create own WordPress shortcode gallery
- Get value from shortcode to do something
- How to prevent XSS alter custom global javascript object & methods in WordPress
- How to check if a meta value has already been assigned to any user?
- How to hide products that do not have an image from a slider carousel for an ecommerce webpage?
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- How to display data from custom table in wordpress phpmyadmin
- Calculating a large number of MYSQL queries as customshort codes, slow
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- filter default query to show just selected level of child pages in wordpress
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Trying to build simple deposit code that hooks into woocommerce
- How to pick the default selected value in wordpress dropdown?
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Colon is Missing In My Website Url in WordPress
- Add New User, extra fields which are required?
- user_profile_update_errors hook not executing
- Send an email to specific adress when button is clicked?
- wp_ob_end_flush_all and wp_suspend_cache_addition()
- Customizer: active_callback and sanitize_callback incompatibility?
- Saving and Restoring a Canvas on A Individual User Basis
- Redirect specific user role to specific site after login?
- Send multiple attachments with wp_mail in PHP
- WordPress admin pointers tour bug?
- Custom shortcode outputs plain text instead of HTML at top of post
- How to use wp_add_inline_style for custom CSS added via shortcode?
- custom url rewrite for wordpress
- Extend plugin Class through functions.php
- Pass php dynamic variable to shortcode
- How can I dynamically update the class in my shortcode?
- Creating own shortcode – echoeing php variable based on JS variable
- How to add a do_action on refreshing of WP customizer?
- Customize position of social icons in upme plugin [closed]
- Weird 404 URL Problem – domain name being placed at end of urls
- How to get the value of input hidden html from text editor to custom page template?
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- Menu jumping when calling it via PHP
- How create a Shortcode with hover and complex options
- Output Video Download Link in template
- Remove from shortcode
- Modify custom field input data before creating a new post
- Displaying recent posts on static page with template-part via shortcode
- Output custom field value to post string
- wordpress 4.4 self hosted video (html5) doesn’t show
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- do_shortcode with custom field
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- Media Upload , file name changed automatically
- How to Reference/Echo Variable from Another PHP Function
- Remove echo from shortcode
- fatal error call to undefined function get_header in index.php on line 1
- Custom posts in different columns style
- Getting error when using wp_insert_post()
- Need help enqueueing webfonts
- need help with existing code showing subpages
- Shortcode to show the code
- How do I add a custom css to all posts without affecting homepage css? [closed]
- how to show only specific category for a template
- Shortcode returns values in the wrong order
- Redirect to another page using contact form 7? [closed]
- Custom Background by Page IDs
- Fatal Errors on pluggable.php
- Get URL from shortcode tag
- Embedding PHP in shortcode $content
- Shortcode with PHP issue “Undefined index”