quicktags_settings
Filter HookDescription
Filters the Quicktags settings.Hook Information
File Location |
wp-includes/class-wp-editor.php
View on GitHub
|
Hook Type | Filter |
Line Number | 361 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$qt_init
|
Quicktags settings. |
string
|
$editor_id
|
Unique editor identifier, e.g. 'content'. |
Usage Examples
Basic Usage
<?php
// Hook into quicktags_settings
add_filter('quicktags_settings', 'my_custom_filter', 10, 2);
function my_custom_filter($qt_init, $editor_id) {
// Your custom filtering logic here
return $qt_init;
}
Source Code Context
wp-includes/class-wp-editor.php:361
- How this hook is used in WordPress core
<?php
356 * @since 3.3.0
357 *
358 * @param array $qt_init Quicktags settings.
359 * @param string $editor_id Unique editor identifier, e.g. 'content'.
360 */
361 $qt_init = apply_filters( 'quicktags_settings', $qt_init, $editor_id );
362
363 self::$qt_settings[ $editor_id ] = $qt_init;
364
365 self::$qt_buttons = array_merge( self::$qt_buttons, explode( ',', $qt_init['buttons'] ) );
366 }
PHP Documentation
<?php
/**
* Filters the Quicktags settings.
*
* @since 3.3.0
*
* @param array $qt_init Quicktags settings.
* @param string $editor_id Unique editor identifier, e.g. 'content'.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/class-wp-editor.php
Related Hooks
Related hooks will be displayed here in future updates.