WPSEO_Metabox_Editor::register_hooks()publicYoast 1.0

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() Yoast 22.4

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' ] );
}