post_type_archive_link хук-фильтрWP 3.1.0

Filters the post type archive permalink.

Использование

add_filter( 'post_type_archive_link', 'wp_kama_post_type_archive_link_filter', 10, 2 );

/**
 * Function for `post_type_archive_link` filter-hook.
 * 
 * @param string $link      The post type archive permalink.
 * @param string $post_type Post type name.
 *
 * @return string
 */
function wp_kama_post_type_archive_link_filter( $link, $post_type ){

	// filter...
	return $link;
}
$link(строка)
The post type archive permalink.
$post_type(строка)
Post type name.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

get_post_type_archive_link()
post_type_archive_link
wp-includes/link-template.php 1348
return apply_filters( 'post_type_archive_link', $link, $post_type );
wp-includes/link-template.php 1321
return apply_filters( 'post_type_archive_link', $link, $post_type );

Где используется хук в WordPress

Использование не найдено.