As you can see in the Shortcode API, there is no jquery involved in evaluating shortcodes. Shortcodes are evaluated on the server side, in PHP, not on the client side with jquery.
It is entirely up to you what you do with attributes in the shortcode. If the user writes something like:
[demo speed=2000]
you would exctract that as an array in your plugin like this
$args = array ('speed' -> 2000);
But there’s no obligation to use $args
in the plugins output. You could happily ignore it.
If you have a setting in your plugin that has the value of ‘speed’ as 500, you could decide to update it on evaluating the shortcode. In this way your site would ‘remember’ the value of the latest shortcode evaluation. Perhaps that’s useful for your purpose.
Summing up, you can do anything you like with the attributes of a shortcode.
Related Posts:
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Running jquery script after shortcode [closed]
- How to put JQuery/Ajax inside shortcode?
- Can someone please tell me what is wrong with my plugin?
- WordPress function not being called from jQuery method
- Create shortcode to echo javascript
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- How to prevent tabs from opening all at once
- Load CSS files in header of Bones theme?
- JS working when used normally but not in wordpress
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- Shortcode return is printing a 1 afterward
- PHP Deprecated: Non-static method should not be called statically
- Loading shortcode with ajax
- Cannot strip JW Player shortcode?
- How to pass multiple values in shortcode?
- How to fetch serialized data from wordpress options
- append stylesheet via shortcode
- Calling function from within functions.php returns unwanted value
- plugin shortcodes not working on custom theme- unsure how to fix
- How to list all active and specific shortcodes in wordpress
- Nested shortcodes
- Disable wordpress from including jQuery in the head section
- Admin-ajax.php is dying “0” without processing function
- Plugin jQuery version VS Theme jQuery version: search for best practice
- Adding a jquery script to plugin contact form 7
- shortcodes displaying outside of content area with echo statement, not what I wanted [duplicate]
- Trying to count the total number of paragraphs inside a blog article
- How Can I Pass the Shortcode’s $atts Variable to the Plugin’s Javascript Function
- Shortcode is not working in homepage page template (custom front page)
- May i Use ShortCode in Template?
- JQuery not working in my plugin [closed]
- Notepad sticky plugin
- Adding Shortcode to Text Widget
- Error with Image Slide plug-in/ s3slider in WP
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- How to add an automatic refresh in WordPress for a Page/Post or an embedded OneDrive/Excel HTML Code?
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- accessing wp.media api from a tinymce plugin
- Visual Composer shortcode for child theme dir
- get_post_title is not working on homepage
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- how to insert data in wordpress table usnig jquery ajax
- Jquery NoConflict Problem
- Redirect to another page using contact form 7? [closed]
- Custom Shortcode Broken in WordPress 3.1
- Namespaced shortcode?
- Shortcode does not expand in Facebook like
- Is there a function to list all uploaded images? How can I add one?
- How to remove js ui library added by default by wordpress
- Creating a widget and missing jQuery
- Stop wordpress from requesting external jquery from googleapi
- Api external with wordpress
- How do I make sure that my plugin only runs on article detail pages?
- Why do I get jQuery reference error / undefined when changing name of plugin file?
- Get post content from outside the loop with plugin shortcode usability
- How to rewrite URL and get the values?
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- Executing Javascript in Plugin
- Separate jQuery for Individual Comments?
- Create Short code dynamically
- force jQuery to load in the head
- Get variable value based on string constant
- Problems with jQuery and is_admin()
- How To Use do_shortcode with WooCommerce One Page Checkout
- WordPress load same script two times
- How do I reinit WordPress plugins dynamically using jS?
- How to get current cart values using WC_Shortcodes?
- Can I add Short Code Of A Plugin In The Code Editor of WordPress?
- insert og image link in wordpress post
- How to check if short code is present in template?
- How to call function in WordPress on button click?
- Hide content for specific users with id
- Why is my shortcode not working?
- using WPPB shortcodes without the plugin
- main navigation menu disappear after adding jquery source file
- save short-code in my custom plugin settings problem missed something
- jquery plugin won’t fire when hamburger class element clicked
- WordPress show descriptions under images in gallery
- Modify Plugin PHP Class in Child Theme – Correct Method
- jQuery to show icon after .hide
- How to add styling and script to a custom widget plugin
- Meta box or shortcode help
- function of parent not working in childtheme
- Not getting result using ajax on wordpress
- Call/Run a Mathematica (.m) Shell Script from WordPress Page/Blog
- Posting code inside the post instead of in the template file using shortcode
- How to use shortcode of any plugin to show it visually where i want?
- Why function hooked using object are executing at all time?
- Pulling RSS from site and display it in posts
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- Trying to Understand Shortcodes.
- Any way to hook into WP after a page displays?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Display HTML5 jQuery Audio Player On Front Page
- cURL External API request displays content above other content on page
- Display file contents within Plugin