Use the preview_post_link filter to modify the preview URL:
function wpa_preview_link( $preview_link ){
return $preview_link . '&v=' . uniqid();
}
add_filter( 'preview_post_link', 'wpa_preview_link' );
Related Posts:
- What’s the difference between home_url() and site_url()
- Prevent “main” WPMU site_url() being returned in functions
- Custom page with variables in url. Nice url with add_rewrite_rule
- Is it possible to use a forgot password url filter?
- Create Custom URL structure for specific Post category
- How can I rename the WordPress AJAX URL? [duplicate]
- Functions.php reverted to new one
- Ninja form Redirect depending on text field content [closed]
- wp-comment author- url +, email filter hook
- Removing custom meta data
- WordPress on AWS Auto scaling and ELB giving 503
- WordPress converts media extention URL automatically to video player
- meta tags doesnt fetch data from permalinks
- Get arguments from URL
- How can I set the SRC URL of the custom logo image?
- Need to convert image url to a Base_64 data url with wordpress function..
- Protect get_query_var from manual input in url
- Problem with images URL after filter applying
- How i can get the URL?
- include w_thumbnail_src in function?
- Create Custom URL structure for specific Post category using Post ID instead of post name
- Fetch URL parameter
- how can I change all wordpress media file url to custom cdn url?
- Add version # to wp_register_style function
- Custom route and extract data from slashes and parameter
- reWrite wp-content url to point on my cdn
- How to Override Page Template if URL matches query?
- Add #primary at the end of navlink permalinks on single posts
- Set URL Parameter Post Layout As Default
- How to create a WordPress Customizer Button to Clear a Cache?
- Using Switch Statement to Change Image According to Last Digit of Topic ID
- Instead of using $post, how do i get the thumbnail image of the $post
- How to add a meta information to the URL?
- How do I change the URL returned by next_posts_link()?
- Function in functions.php by url
- How do I get the current edit page ID in the admin?
- Does hooking into the same action multiple times drain memory?
- Apply custom role capabilities to administrator (without plugin)
- Different wp_mail_from and wp_mail_from_name for specific situations
- Linking thumbnail to full size image
- is_front_page not working in functions.php
- VERY new to coding – keep breaking site trying to add to functions.php
- Restrict user registration to emails on a single domain
- Call to undefined add_action() in theme’s functions.php
- How to enqueue JavaScript for specific WordPress pages only?
- Passing HTML in WordPress Shortcode arguments
- Can I use require() function in a template file?
- Exclude Empty Child Categories in Menu
- Convert User ID’s to User Names in a single.php file
- Custom roles can’t access to wp-admin
- How to specify which Gutenberg blocks are available in the editor for a page template
- password protected post policy
- Custom Shortcode, functions PHP WP_Query loop
- How to filter out shortcode when displaying the_excerpt() in the loop?
- wpautop – disable tags, keep tags
- Logout hyperlink within a sub-menu
- How do I pass arguments for multiple functions hooked to a single action?
- Manipulate Permalink
- Toggle User Roles with button
- Theme functions.php file auto delete everyday [closed]
- How to get the index number of the posts?
- Two Types of settings in WP – The Doubt
- Custom Attachment Caption Fields
- Generating dynamic css into custom file [closed]
- How to call particular funcion when the check box is checked in plugin options page
- Call WordPress function outside of WordPress
- error in getting post id
- is_author(get_current_user_id()) returns false when author id and user id match
- Exclude category from shortcode
- unnecessary request call for js and css after calling wp_dequeue_script
- Reset postdata not working on WP_Query in functions.php
- Filter nav menu items HTML tags and wrap inner text with span
- Using Static HTML instead of the `home_url()` WP function
- How to append classname to body tag if guest user
- add_filter to specific WooCommerce Category
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Can I include a custom PHP function in a WordPress function?
- Function to replace comment’s accented characters before posting
- wp_nav_menu work in functions.php but not in the theme
- Only echo Page Content (not page title & page content together)
- How do I preserve changes to a theme’s functions.php across updates?
- Unable to Change “Pages:” Before WP_LINK_PAGES
- Looking for Functions File that doesn’t Exist
- Updating custom query var with multiple values
- Redirect to one of two pages after data submitted, depending on the current url
- WordPress wp_dequeue_script remove all other scripts
- Add Javascript code to functions.php childtheme
- Why does my wp_enqueue_script() only insert the script for logged in users
- method to fetch entire tag list on archive.php
- MCAPI.class.php showing some error
- Remove post from latest posts after a month only with certain tag
- Limit Number of Posts on Blog Category Page Throwing 404 Error on Paginated Pages
- How can I return the result of my custom function?
- wordpress not calling peliegro functions.php?
- Sanitize html, where to sanitize
- How to display data from custom fields in my custom shortcode?
- function to return comma separated list of meta values
- multible shortcodes (for differnt values) with one function
- How to extract URLs from wordpress taxonomies
- Wanted to get rid of Paragrapgh tag in submit buttom of the WordPress form