Remove the action, then add it back on a different hook.
I think the only concern you could have with doing this is ensuring you do that late enough for the action to have been hooked, it should possible using the plugins_loaded
hook(because that runs after plugins have loaded).
add_action( 'plugins_loaded', 'juggle_sharethis_action' );
function juggle_sharethis_action() {
remove_action( 'wp_head', 'st_widget_head' );
add_action( 'wp_footer', 'st_widget_head' );
}
Actions
http://codex.wordpress.org/Plugin_API/Action_Reference
Adding actions
http://codex.wordpress.org/Function_Reference/add_action
Removing actions
http://codex.wordpress.org/Function_Reference/remove_action
Related Posts:
- ajaxurl not defined on front end
- Why does WordPress use outdated jQuery v1.12.4?
- How to add a javascript snippet to the footer that requires jQuery
- How to include jQuery and JavaScript files correctly?
- How Do I Use jQuery UI In My Plugin
- Remove profile picture option (and other things) from profile.php (in admin)
- Test to see if jQuery or Prototype is queued by another plugin?
- jQuery in header or footer
- Hook the Keydown Event in the TinyMCE Post Editor
- What’s the earliest point I can get the queried object ID?
- Add a jQuery function to admin pages
- How to Add a .js file Only in one specific Page Dynamically to Head
- Help adding image upload functionality to widget
- How to trap “Publish” button to check for meta box validation?
- Use js script from one plugin in another plugin
- Programmatically Selecting Theme Based on URL
- Using Ajax call in jQuery doesn’t work in widget
- What is the difference between these two methods of writing $ instead of jQuery in WordPress [closed]
- Admin-ajax.php appending a status code to ajax response
- Plugin admin page meta_box toggle and order state not saving
- WordPress plugin options and jQuery
- Inserting JS snippet in the footer if there is no wp_footer?
- Ajax in WordPress – path issue
- Loading jQuery and jQuery plugin script files correctly [duplicate]
- jquery document ready function not being called [closed]
- Execute Hook on the footer or header after activating a plugin
- Custom plugin – $post_id in wp_head
- Enqueue scripts in footer
- Add a row on clicking each post featured image
- how to add Jquery script to one page?
- Modifying meta tags after doing ajax call in plugin
- Is there an event or an other method that tells me the preview is loaded?
- Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
- How to serve different thumbnails/images depending on users browser/platform
- how to search users by ajax live search
- jQuery selectors for editor elements safe to use?
- Display WordPress the_content() via data attributes
- javascript datatables in a plugin
- PowerPress mobile media player
- WordPress custom taxonomy check box to dropdown
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- wp_footer hook only working on homepage not in other pages
- jQuery does not enqueue for my purpose… (before an inline script in the footer)
- Plugin – Make sure jquery is loaded in my settings page plus my JS file
- jQuery in WordPress Plugin
- WP Plugin Running before jQuery
- jquery & ajax sending data to php
- Can’t find where to modify attrbitutes
- should i be checking for jquery before enqueing it in a plugin
- jQuery instantly executes (a button click and css change) on load
- How to include jQuery into my plugin so I can use it on plugin page?
- how to get the post id in plugin
- insert query on a custom table using ajax with jQuery plugin Jeditable
- How to enqueue scripts in right way in a plugin?
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- Data not insert and update through ajax and jQuery in admin page?
- WP ajax requests not stacking?
- Insert Into Post Not Working For Audio File Using jQuery
- jquery in wordpress plugin with depdendency
- ajax working when function is on child theme but not in plugin page
- Using function from enqueued .js file in theme in plugin?
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- Ajax +wordpress onClick link redirect to new page and create html content
- Use options to control jQuery plugin
- How to localize data array in plugin’s option page
- sanitizing/escaping plugin options
- Loading Images from Javascript on the Front End
- Using jQuery prepend() with file include
- How to deal with different jQuery versions?
- Get cat parameter from admin-ajax
- Ajax on the Administration Side of plugin – returns 0
- How to replace the existing metatag using the backend to insure a thumbnail image gets fetched when we share on social media?
- escape html in jQuery for WordPress
- Jquery php request is returning a weird result
- Query String Filtering API
- jQueryUI draggable doesn’t work in WordPress plugin
- setTimeout not working in jquery
- WordPress Jquery with heade and footer sritp plugin
- How do I get a reference to the HTML memory buffer while the page is being constructed?
- wp_ajax add_action fuction won’t fire on custom jQuery action
- Add new header/footer on landing page with plugin
- Filterable posts using categories
- How to get values from Tinymce visual editor popup?
- replacing jquery google cdn with a new version dynamically
- How to enqueue an external Javascript file to Frontpage footer
- WordPress function is not called and ajax return 0
- Ajax call not working with
- How can I add the Post ID to Class Name in Jquery?
- Template file structure , wordpress hook for altering the template
- Script work on non logged in user but not work for logged in user?
- How do I call the dashboard’s sortable javascript in a plugin page?
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- Page reload occurs before request finishes
- Loading jQuery library from WordPress admin
- How do I use (or mimic) document.getElementById() on a page loaded from WordPress database?
- Reading the inside of
- How to get the value entered in the input field in wordpres
- How react js and other Javascript Technologies works on WordPress plugin?
- How to access Elementor-navigation-elements via jQuery
- Insert meta-description into Yoast-SEO input-field via JavaScript