WordPress at a glance
filter is not described

disable_captions filter-hook . WP 2.6.0

Filters whether to disable captions.

Prevents image captions from being appended to image HTML when inserted into the editor.

Usage

add_filter( 'disable_captions', 'filter_function_name_1543' );
function filter_function_name_1543( $bool ){
	// filter...

	return $bool;
}
$bool(true/false)
Whether to disable appending captions. Returning true to the filter will disable captions.
Default: empty string

Changelog

Since 2.6.0 Introduced.

Where the hook is called

image_add_caption()
disable_captions
wp_tinymce_inline_scripts()
disable_captions
_WP_Editors::editor_settings()
disable_captions
wp_enqueue_media()
disable_captions
wp_print_media_templates()
disable_captions
media_upload_type_url_form()
disable_captions
wp_media_insert_url_form()
disable_captions
wp-admin/includes/media.php 214
if ( empty( $caption ) || apply_filters( 'disable_captions', '' ) ) {
wp-includes/script-loader.php 417
if ( apply_filters( 'disable_captions', '' ) ) {
wp-includes/class-wp-editor.php 560
if ( apply_filters( 'disable_captions', '' ) ) {
wp-includes/media.php 3826
'captions'         => ! apply_filters( 'disable_captions', '' ),
wp-includes/media-template.php 972
if ( ! apply_filters( 'disable_captions', '' ) ) :
wp-includes/media-template.php 1035
if ( ! apply_filters( 'disable_captions', '' ) ) :
wp-admin/includes/media.php 2395
if ( ! apply_filters( 'disable_captions', '' ) ) {
wp-admin/includes/media.php 2876
if ( ! apply_filters( 'disable_captions', '' ) ) {

Where in WP core the hook is used

Usage not found!