permalink_structure_changed хук-событие . WP 2.8.0
Fires after the permalink structure is updated.
Использование
add_action( 'permalink_structure_changed', 'action_function_name_1645', 10, 2 ); function action_function_name_1645( $old_permalink_structure, $permalink_structure ){ // action... }
- $old_permalink_structure(строка)
- The previous permalink structure.
- $permalink_structure(строка)
- The new permalink structure.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
permalink_structure_changed
wp-includes/class-wp-rewrite.php 1943
do_action( 'permalink_structure_changed', $old_permalink_structure, $permalink_structure );