Action hook 'wp_enqueue_code_editor'

in WP Core File wp-includes/general-template.php at line 4079

View Source

wp_enqueue_code_editor

Action Hook
Description
Fires when scripts and styles are enqueued for the code editor.

Hook Information

File Location wp-includes/general-template.php View on GitHub
Hook Type Action
Line Number 4079

Hook Parameters

Type Name Description
array $settings Settings for the enqueued code editor.

Usage Examples

Basic Usage
<?php
// Hook into wp_enqueue_code_editor
add_action('wp_enqueue_code_editor', 'my_custom_function', 10, 1);

function my_custom_function($settings) {
    // Your custom code here
}

Source Code Context

wp-includes/general-template.php:4079 - How this hook is used in WordPress core
<?php
4074  	 *
4075  	 * @since 4.9.0
4076  	 *
4077  	 * @param array $settings Settings for the enqueued code editor.
4078  	 */
4079  	do_action( 'wp_enqueue_code_editor', $settings );
4080  
4081  	return $settings;
4082  }
4083  
4084  /**

PHP Documentation

<?php
/**
	 * Fires when scripts and styles are enqueued for the code editor.
	 *
	 * @since 4.9.0
	 *
	 * @param array $settings Settings for the enqueued code editor.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-includes/general-template.php
Related Hooks

Related hooks will be displayed here in future updates.