quicktags_settings filter-hookWP 3.3.0

Filters the Quicktags settings.

Usage

add_filter( 'quicktags_settings', 'wp_kama_quicktags_settings_filter', 10, 2 );

/**
 * Function for `quicktags_settings` filter-hook.
 * 
 * @param array  $qtInit    Quicktags settings.
 * @param string $editor_id Unique editor identifier, e.g. 'content'.
 *
 * @return array
 */
function wp_kama_quicktags_settings_filter( $qtInit, $editor_id ){

	// filter...
	return $qtInit;
}
$qtInit(array)
Quicktags settings.
$editor_id(string)
Unique editor identifier, e.g. 'content'.

Changelog

Since 3.3.0 Introduced.

Where the hook is called

_WP_Editors::editor_settings()
quicktags_settings
wp-includes/class-wp-editor.php 357
$qtInit = apply_filters( 'quicktags_settings', $qtInit, $editor_id );

Where the hook is used in WordPress

Usage not found.