Description
Filters whether to disable captions. Prevents image captions from being appended to image HTML when inserted into the editor.
Occurrences
Filename | Line Number |
---|---|
wp-admin/includes/media.php | 216 |
wp-admin/includes/media.php | 2443 |
wp-admin/includes/media.php | 2927 |
wp-includes/class-wp-editor.php | 565 |
wp-includes/media-template.php | 1077 |
wp-includes/media-template.php | 1140 |
wp-includes/media.php | 4727 |
wp-includes/script-loader.php | 553 |
Parameters
Type | Name | Description |
---|---|---|
bool | $bool | Whether to disable appending captions. Returning true from the filter will disable captions. Default empty string. |
PHP Doc
/**
* Filters whether to disable captions.
*
* Prevents image captions from being appended to image HTML when inserted into the editor.
*
* @since 2.6.0
*
* @param bool $bool Whether to disable appending captions. Returning true from the filter
* will disable captions. Default empty string.
*/