The action is update_option_permalink_structure
. You get the old and the new value as parameters.
add_action( 'update_option_permalink_structure' , 'my_custom_function', 10, 2 );
function my_custom_function( $oldvalue, $_newvalue )
{
// do something
}
There are also the actions update_option_category_base
and update_option_tag_base
.
Related Posts:
- ‘post_type_link’ filter not working
- How to get url of a post from admin panel
- What is the action or filter for changing permalink in Edit Post/Page?
- How to hook into permalink when publishing-saving post?
- Changing post content on save, using updated fields
- get_permalink() is not working after published
- Edit page slug after save, cause 404 by linked pages
- rewrite rule to redirect to the most recent date permalink
- Modify post slug before saving
- Change permalink when page category selected in admin
- How to update permalink on the fly?
- How do I override the user’s input when updating a custom post type’s permalink?
- Is it possible to get a page link from its slug?
- Passing a parameter to filter and action functions
- Difference Between Filter and Action Hooks?
- Need help with add_rewrite_rule
- After server migration only the homepage works
- How to know what functions are hooked to an action/filter?
- Get a list of all registered actions
- what is correct way to hook when update post
- Is there a hook that runs after a user logs in?
- how to limit search to post titles?
- How to enqueue scripts on custom post add/edit pages?
- remove “index.php” from permalinks
- How can I edit post data before it is saved?
- where is permalink info stored in database?
- Difference between do_action and add_action
- Changing permalinks gives me 404 errors on nginx
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Trouble understanding apply_filters()
- Change media item permalink
- How can I see all the actions attached to an “add_action” hook?
- Which hook should be used to add an action containing a redirect?
- remove custom post type permalink
- Get Permalink without domain (i.e. get relative permalink) [duplicate]
- How does WordPress create URLs that Apache knows about?
- Strange permalink issue: can’t rename /company-2/ to /company/
- Passing and retrieving query vars in wordpress
- get_template_part vs action hooks in themes
- Why do some hooks not work inside class context?
- Get the current page URL (including pagination)
- Stop WordPress appending `-2` to the end of my url after i change it
- Get default permalink structure from pretty URL’s
- How to get permalink and title from post ID?
- Why is “/page/2/” not working?
- WordPress Permalinks not working in Apache2 Ubuntu 14.04
- Performance of my permalink structure?
- Difference between after_setup_theme and init action hooks?
- Permalink format: singular or plural
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- Get current URL (permalink) without /page/{pagenum}/
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- Is there any action filter/hook for validating a custom field before publishing the post?
- Get page permalink without wpurl
- How can I get the privacy policy page?
- Can I use REST-API on plain permalink format?
- Trigger custom action when setting button pressed
- WordPress slug issue with non-latin characters
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to get pretty URLs with add_query_arg in permalinks
- Please explain how these hooks work
- How many filter/action hooks are healthy?
- What is the best permalink structure for SEO?
- Change author permalink
- Creating custom permalink structure for languages
- Hide permalink and preview button and link on custom post
- Custom post type permalink endpoint
- Earliest hook to reliably get $post/$posts
- How can I make Capital letter ( upper-case ) permalinks?
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How to remove dates from existing permalinks?
- How do I set a custom base URL for standard posts?
- Removing Parent Page(s) from Permalink
- Why permalinks work with /index.php/%postname% but not with just %postname%?
- Hook after image is uploaded and image sizes generated
- Setting up WordPress with Custom Permalinks and no .htaccess File?
- Getting the Site URL Including the Front Base
- Does WordPress Change the .htaccess File When Updating?
- Using $_GET variables in the URL?
- Removing the redirect after changing a page’s slug
- How to display a public profile page for registered users with custom slug?
- What does (10, 2) mean when used with add_filter
- Removing leading zeros from custom permalink structure
- Must slugs be unique?
- Setting 404 page in Nginx
- add_action(‘wp_ajax_[action name]’, myfunction) problem
- WordPress Multisite: Adding actions to only one site
- How to only hook on Single.php after content?
- How to get the clean permalink in a draft?
- How to use relative links on my pages?
- How does wordpress keep track of post id when post id is not used in permalinks?
- How to filter to output of the get_permalink() function
- Stop WordPress from reserving slugs for media items?
- Including category-base in a post permalink results in 404
- How to remove action hook done in a plugin from functions.php in my theme?
- How to change ‘with_front” key from an existing custom post type?
- Valid characters for actions, hooks and filters