wp_enqueue_code_editor
Fires when scripts and styles are enqueued for the code editor.
Использование
add_action( 'wp_enqueue_code_editor', 'wp_kama_enqueue_code_editor_action' );
/**
* Function for `wp_enqueue_code_editor` action-hook.
*
* @param array $settings Settings for the enqueued code editor.
*
* @return void
*/
function wp_kama_enqueue_code_editor_action( $settings ){
// action...
}
- $settings(массив)
- Settings for the enqueued code editor.
Список изменений
| С версии 4.9.0 | Введена. |
Где вызывается хук
wp_enqueue_code_editor
wp-includes/general-template.php 4093
do_action( 'wp_enqueue_code_editor', $settings );