Try this code Refresh page after update_user_meta
add_action( 'user_meta_after_user_update', 'refreshPage' );
function refreshPage() {
echo '<script>location.reload();</script>';
}
Related Posts:
- getting the values of hidden inputs to use them in a php mysql query
- Access/update database with jQuery
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- Database entry removed on browser refresh, Ajax PHP jQuery
- AJAX Not Working With WordPress Database properly
- notify users when changed database
- Is there a way to programmatically create multiple pages utilizing the same template but different content from a json file?
- Ajax load more posts with multiple tax query
- $wpdb->update with multiple parameters gives error
- How to save checkbox values for logged in users?
- WordPress Sending data to Ajax with select option
- wp search-replace on database returns PHP fatal error: Array and string offset access syntax with curly braces is no longer supported
- WordPress ajax doesn’t display object method on jQuery .change() function
- Ajax loaded form replaces form action with Ajax url
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- How to design a table based on css values set from admin/dashboard
- How does WordPress know wich language is chosen when there is a database connection error
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Adding Custom Slider
- Ajax date_query not working past the first iteration
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- How can I save unique user data on my site? [closed]
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- AJAX pagination, update current page
- Limit Widgets to Sidebar ID’s
- Is it possible to create a wordpress database with php code?
- Update results, Before deleting the related category [closed]
- Save Search System
- adjust section according to country?
- populate form fields in a loop with ajax
- dynamic dependent select dropdown
- Store a default value for a transient on plugin activation
- Change “add to cart” button color based on Woocommerce product category [closed]
- How can I get the values of my WordPress $wpdb query in Jquery?
- Ajax request returns ‘Array’. How to output the actual results?
- Ajax load more button for comments wordpress
- How WordPress reacts to a lack of memory of the server [closed]
- Slick + PHP + ACF + JQuery slide reveal not working
- How to add a do_action on refreshing of WP customizer?
- Split reads to a different connection string
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- Execute long and heavy processes
- Dynamic content in template
- Why Won’t My Inputs in a form with a Get method work together?
- database sent to a JSON file
- Gravity form built in Captcha
- Menu jumping when calling it via PHP
- Setting value of session with Ajax not working
- Click a radio button must set textfield value
- WordPress Multiple Navigation bars
- inserting a post from an extern php file but post content doesn’t show on wp site
- [jQuery]Adding shortcode
- multiple taxonomy select display only one in front end
- Display parent and child taxonomies in separate drop down select fields
- Show success or error messages in Ajax response to WordPress custom registration form
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Add / Update Custom Fields After Select Pictures in Media Window
- Post repeating with infinite scroll
- Plugins not working on AJAX requests
- Fancybox type popup window that’s not an iframe
- How to disable controls in theme customizer?
- Using custom tables for old posts
- Can I use a jQuery Ajax request in Code Snippets Plugin for WordPress?
- JQuery calling a Custom PHP function (Works in Dev but not in WordPress)
- Databases – Submitting data from inputs to database [closed]
- Jquery function working in Dev Console but not otherwise [duplicate]
- db converts decimal number wrong
- Form Security: nonce vs. jQuery
- How do I Import / Upload Files with jQuery AJAX?
- WordPress admin-ajax.php 400 bad request
- Not connecting to database in file with multiple MySQL connections
- Why does wp_head hook my functions to the beginning of my source code?
- WordPress Ajax Call inserting data but success response false
- Automatically set all tags to have a height of 0 if there is no content inside the tag [closed]
- Ajax contact form return 0
- How can i display a jquery slide on front page
- AJAX – Returning Two JSON Objects with One PHP Function
- Pull GetOption() variable into jQuery dynamically created html
- Filtering a Database Query
- Royalty-Free Sliders used in theme development
- Error – ‘create_function is deprecated’ [closed]
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- Display Data in Table from External Database in WP using Shortcodes
- Is it best to avoid using $wpdb for security issues?
- Unset session variable on page reload / setup but exclude AJAX
- Add Ajax Hooks and Call from Custom Template PHP
- How can I import an excel column into wordpress database?
- Blob file download problem
- WordPress Block developer from exporting Database via PHP
- How to retrieve the data from the sever and displaying it in a page?
- WordPress Ajax Always returning 0
- Is it save to use eval for a jQuery callback method coming from the database?
- Jquery window.send_to_editor function
- Double jQuery loaded
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- Execute a function every hour in the background
- Create page with custom php script and fetched data
- Flexslider won’t work on WordPress
- Function won’t run onclick using Ajax
- Javascript not loading on certain page