Filters whether to disable captions.
Prevents image captions from being appended to image HTML when inserted into the editor.
$boolbool
if ( empty( $caption ) || apply_filters( 'disable_captions', '' ) ) {
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/disable_captions