WPSEO_Metabox_Editor::register_hooks()
Registers hooks to WordPress.
Метод класса: WPSEO_Metabox_Editor{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WPSEO_Metabox_Editor = new WPSEO_Metabox_Editor(); $WPSEO_Metabox_Editor->register_hooks();
Код WPSEO_Metabox_Editor::register_hooks() WPSEO Metabox Editor::register hooks Yoast 24.7
public function register_hooks() { // For the Classic editor. add_filter( 'mce_css', [ $this, 'add_css_inside_editor' ] ); // For the Block/Gutenberg editor. // See https://github.com/danielbachhuber/gutenberg-migration-guide/blob/master/filter-mce-css.md. add_action( 'enqueue_block_editor_assets', [ $this, 'add_editor_styles' ] ); add_filter( 'tiny_mce_before_init', [ $this, 'add_custom_element' ] ); }