W3cubDocs

/WordPress

apply_filters( 'disable_captions', bool $bool )

Filters whether to disable captions.

Description

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

Parameters

$bool

(bool) Whether to disable appending captions. Returning true from the filter will disable captions. Default empty string.

Source

File: wp-admin/includes/media.php

View on Trac

Changelog

Version Description
2.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/disable_captions