wp_unique_post_slug хук-фильтр . WP 3.3.0
Filters the unique post slug.
Использование
add_filter( 'wp_unique_post_slug', 'filter_function_name_6241', 10, 6 ); function filter_function_name_6241( $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug ){ // filter... return $slug; }
- $slug(строка)
- The post slug.
- $post_ID(число)
- Post ID.
- $post_status(строка)
- The post status.
- $post_type(строка)
- Post type.
- $post_parent(число)
- Post parent ID
- $original_slug(строка)
- The original post slug.
Список изменений
С версии 3.3.0 | Введена. |
Где вызывается хук
wp_unique_post_slug
wp-includes/post.php 4710
return apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug );