WPSEO_Admin_Editor_Specific_Replace_Vars::get()
Retrieves the editor specific replacement variables.
Метод класса: WPSEO_Admin_Editor_Specific_Replace_Vars{}
Хуки из метода
Возвращает
Массив
. The editor specific replacement variables.
Использование
$WPSEO_Admin_Editor_Specific_Replace_Vars = new WPSEO_Admin_Editor_Specific_Replace_Vars(); $WPSEO_Admin_Editor_Specific_Replace_Vars->get();
Код WPSEO_Admin_Editor_Specific_Replace_Vars::get() WPSEO Admin Editor Specific Replace Vars::get Yoast 24.0
public function get() { /** * Filter: Adds the possibility to add extra editor specific replacement variables. * * @param array $replacement_variables Array of editor specific replace vars. */ $replacement_variables = apply_filters( 'wpseo_editor_specific_replace_vars', $this->replacement_variables ); if ( ! is_array( $replacement_variables ) ) { $replacement_variables = $this->replacement_variables; } return array_filter( $replacement_variables, 'is_array' ); }