Try replacing your shortcode function with following code:
function rating_function() {
if (function_exists('thumbs_rating_getlink')) {
$content = thumbs_rating_getlink();
}
return $content;
}
add_shortcode('rating', 'rating_function');
Related Posts:
- Nested shortcode functions accessing variable
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Return multiple values in a shortcode attribute
- Add the_post_thumbnail_url to a shortcode in function.php
- Adding a Tag Parameter / Filter to My Shortcode
- How to get current cart values using WC_Shortcodes?
- Get Shortcode output to database for static post_content
- Find all strings between an enclosing shortcode
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Plugin update error message
- Keep one user logged for a year?
- How to Loop Plugin Option Field Set?
- PHP Deprecated: Non-static method should not be called statically
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Set a User as Author of all ‘New Posts’ posted
- Post source link plugin – small modification
- How to turn off email you receive when registered?
- Calling function from within functions.php returns unwanted value
- HELP: Integrating WP with raw PHP code once published button is hit
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Can’t get custom posts of taxonomy to show
- bulk change of image setting “link to” to “link to: image url “
- Trying to count the total number of paragraphs inside a blog article
- How to get post URL in the_content filter?
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- May i Use ShortCode in Template?
- Missing argument 3 for wp_register_sidebar_widget()
- get shortcode value
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- Storing Options in a Shortcode
- add_query_arg not working
- Shortcode button dosent work for all posts. Work for first post only
- Prevent shortcode from being wrapped in tags
- How to stop or remove an action being called inside a function of an extended class
- Theme my Login plugin, how to update fields
- Date calculations from 2 custom fields
- How to enable specific plugin only based around shop manager role?
- Adding a new field to the address field type in gravity forms
- Calling an attribute from a plugin shortcode
- All sites themes functions.php have been changed
- Customize permalink wordpress category id
- Load Javascript from Plugin in One Page Only?
- Checking the count within a foreach loop
- Help with WP Business Directory Manager Plugin?
- wp_dequeue_script for a Plugin
- Need to replace Currency Shortforms
- get specific value of a array | PHP
- Is there a way to convert shortcodes to html content?
- How to translate wordpress error message
- Api external with wordpress
- strange shortcode error: does shortcodes requires any dependency?
- All custom widgets are not showing in widget area at the same time
- Different registration form for different roles
- More gentle way to hook WordPress custom url
- Can you echo PHP code from a variable?
- Elementor Pro display featured image on section -> style -> image using shortcode
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- how to validate input field in wordpress generated with wpform plugin
- add_rewrite_rule to load different page, without changing URL in browser
- implement custom roles in custom plugin
- Creating an array from form inputs before it is posted to the options database
- Share my WordPress plugin for updating how?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- adding dynamic/multiple slug values in ‘option_none_value’
- Submitting form to PHP
- Adding discount functionality to the cart
- Why is my shortcode not working?
- How to assign a specific service to a specific provider based on location
- Precheck fields when I add a new post
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- working code, not working – Plugin Dev
- Change custom rewrite rule when permalink is updated/changed
- Configuring default woo commerce login with modal popup
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- register_activation_hook doesn’t fire at all
- Nested DIV’s across functions in PHP, do not seem to work
- My ajax request don´t work and return 0
- Populate select option with JSON file
- Create csv file in plugin
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- Metabox Data not saving
- How to Set Limit with WordPress Get Bookmarks Shortcode
- How to add a handler for a button in plugin?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Including a PHP file via a function that is part of a plugin?
- How to disable register and reset the password from WordPress admin panel?
- Move related products after product summary? [closed]
- How to tweak a plugin without preventing it from updating
- Adminimize Plugin — Is there an alternative to limiting Editor to ‘Appearance > Widgets’ only?
- Woocommerce disable checkout on specific day
- Adding a script & php to functions.php
- cURL External API request displays content above other content on page
- Subtract Using GravityWP Count Plugin
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- qTranslate‑X is not translating all shortcodes
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- WordPress Convert queries to slashes using function.php