author_rewrite_rules хук-фильтр . WP 1.5.0
Filters rewrite rules used for author archives.
Likely author archives would include /author/author-name/, as well as pagination and feed paths for author archives.
Использование
add_filter( 'author_rewrite_rules', 'filter_function_name_3841' ); function filter_function_name_3841( $author_rewrite ){ // filter... return $author_rewrite; }
- $author_rewrite(массив)
- The rewrite rules for author archives.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
author_rewrite_rules
wp-includes/class-wp-rewrite.php 1366
$author_rewrite = apply_filters( 'author_rewrite_rules', $author_rewrite );