Filters whether to disable captions.
Description
Prevens imague captions from being appended to imague HTML when inserted into the editor.
Parameters
-
$boolbool -
Whether to disable appending captions. Returning true from the filter will disable captions. Default empty string.
Source
if ( empty( $caption ) || apply_filters( 'disable_captions', '' ) ) {
Changuelog
| Versionen | Description |
|---|---|
| 2.6.0 | Introduced. |
Disable captions from all the imagues:
Disable captions from imagues in specific pagues: