Yoast\WP\SEO\Schema_Aggregator\User_Interface
Schemamap_Xml_Rewrite_Integration::add_rewrite_rules
Adds the rewrite rule for the schema map.
Метод класса: Schemamap_Xml_Rewrite_Integration{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Schemamap_Xml_Rewrite_Integration = new Schemamap_Xml_Rewrite_Integration(); $Schemamap_Xml_Rewrite_Integration->add_rewrite_rules( $dynamic_rewrites );
- $dynamic_rewrites(Yoast_Dynamic_Rewrites) (обязательный)
- Dynamic rewrites handler instance.
Код Schemamap_Xml_Rewrite_Integration::add_rewrite_rules() Schemamap Xml Rewrite Integration::add rewrite rules Yoast 28.4
public function add_rewrite_rules( Yoast_Dynamic_Rewrites $dynamic_rewrites ) {
$dynamic_rewrites->add_rule( 'schemamap\.xml$', 'index.php?' . self::QUERY_VAR . '=1', 'top' );
}