Yoast\WP\SEO\Integrations\Third_Party
Elementor::get_custom_replace_vars() protected Yoast 1.0
Gets the custom replace variables for custom taxonomies and fields.
{} Это метод класса: Elementor{}
Хуков нет.
Возвращает
Массив. Array containing all the replacement variables.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_custom_replace_vars( $post );
- $post(WP_Post) (обязательный)
- The post to check for custom taxonomies and fields.
Код Elementor::get_custom_replace_vars() Elementor::get custom replace vars Yoast 15.6.2
protected function get_custom_replace_vars( $post ) {
return [
'custom_fields' => $this->get_custom_fields_replace_vars( $post ),
'custom_taxonomies' => $this->get_custom_taxonomies_replace_vars( $post ),
];
}