permalink_structure_changed WordPress Action Hook

The permalink_structure_changed hook is fired when the permalink structure is changed. The new structure is passed to the hook as an argument.

do_action( 'permalink_structure_changed', string $old_permalink_structure, string $permalink_structure ) #

Fires after the permalink structure is updated.


Parameters

$old_permalink_structure

(string)The previous permalink structure.

$permalink_structure

(string)The new permalink structure.


Top ↑

Source

File: wp-includes/class-wp-rewrite.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.