print_default_editor_scripts
Action HookDescription
Fires when the editor scripts are loaded for later initialization, after all scripts and settings are printed.Hook Information
File Location |
wp-includes/class-wp-editor.php
View on GitHub
|
Hook Type | Action |
Line Number | 1023 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into print_default_editor_scripts
add_action('print_default_editor_scripts', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-editor.php:1023
- How this hook is used in WordPress core
<?php
1018 * Fires when the editor scripts are loaded for later initialization,
1019 * after all scripts and settings are printed.
1020 *
1021 * @since 4.8.0
1022 */
1023 do_action( 'print_default_editor_scripts' );
1024
1025 self::wp_link_dialog();
1026 }
1027
1028 /**
PHP Documentation
<?php
/**
* Fires when the editor scripts are loaded for later initialization,
* after all scripts and settings are printed.
*
* @since 4.8.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/class-wp-editor.php
Related Hooks
Related hooks will be displayed here in future updates.