WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Yoast\WP\SEO\Integrations\Front_End

Comment_Link_Fixer::replytocom_redirect() public Yoast 1.0

Redirects out the ?replytocom variables.

{} Это метод класса: Comment_Link_Fixer{}

Хуков нет.

Возвращает

true/false. True when redirect has been done.

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

$Comment_Link_Fixer = new Comment_Link_Fixer();
$Comment_Link_Fixer->replytocom_redirect();

Код Comment_Link_Fixer::replytocom_redirect() Yoast 15.6.2

<?php
public function replytocom_redirect() {
	if ( isset( $_GET['replytocom'] ) && \is_singular() ) {
		$url          = \get_permalink( $GLOBALS['post']->ID );
		$hash         = \sanitize_text_field( \wp_unslash( $_GET['replytocom'] ) );
		$query_string = '';
		if ( isset( $_SERVER['QUERY_STRING'] ) ) {
			$query_string = \remove_query_arg( 'replytocom', \sanitize_text_field( \wp_unslash( $_SERVER['QUERY_STRING'] ) ) );
		}
		if ( ! empty( $query_string ) ) {
			$url .= '?' . $query_string;
		}
		$url .= '#comment-' . $hash;

		$this->redirect->do_safe_redirect( $url, 301 );

		return true;
	}

	return false;
}