the_content_more_link хук-фильтрWP 2.8.0

Filters the Read More link text.

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

add_filter( 'the_content_more_link', 'wp_kama_the_content_more_link_filter', 10, 2 );

/**
 * Function for `the_content_more_link` filter-hook.
 * 
 * @param string $more_link_element Read More link element.
 * @param string $more_link_text    Read More text.
 *
 * @return string
 */
function wp_kama_the_content_more_link_filter( $more_link_element, $more_link_text ){

	// filter...
	return $more_link_element;
}
$more_link_element(строка)
Read More link element.
$more_link_text(строка)
Read More text.

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

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

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

get_the_content()
the_content_more_link
wp-includes/post-template.php 374
$output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink( $_post ) . "#more-{$_post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );

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

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