Yoast\WP\SEO\Integrations
Schema_Blocks::register_template() public Yoast 1.0
Registers a schema template.
{} Это метод класса: Schema_Blocks{}
Хуков нет.
Возвращает
null.
Использование
$Schema_Blocks = new Schema_Blocks(); $Schema_Blocks->register_template( $template );
- $template(строка) (обязательный)
- The template to be registered. If starting with a / is assumed to be an absolute path. If not starting with a / is assumed to be relative to WPSEO_PATH.
Код Schema_Blocks::register_template() Schema Blocks::register template Yoast 15.6.2
public function register_template( $template ) {
if ( \substr( $template, 0, 1 ) !== '/' ) {
$template = \WPSEO_PATH . '/' . $template;
}
$this->templates[] = $template;
}