Yoast\WP\SEO\Integrations\Front_End
Comment_Link_Fixer::register_hooks() public Yoast 1.0
Initializes the integration.
This is the place to register hooks and filters.
{} Это метод класса: Comment_Link_Fixer{}
Хуков нет.
Возвращает
null.
Использование
$Comment_Link_Fixer = new Comment_Link_Fixer(); $Comment_Link_Fixer->register_hooks();
Код Comment_Link_Fixer::register_hooks() Comment Link Fixer::register hooks Yoast 15.7
public function register_hooks() {
if ( $this->clean_reply_to_com() ) {
\add_filter( 'comment_reply_link', [ $this, 'remove_reply_to_com' ] );
\add_action( 'template_redirect', [ $this, 'replytocom_redirect' ], 1 );
}
// When users view a reply to a comment, this URL parameter is set. These should never be indexed separately.
if ( $this->has_replytocom_parameter() ) {
\add_filter( 'wpseo_robots_array', [ $this->robots, 'set_robots_no_index' ] );
}
}