wpseek.com
A WordPress-centric search engine for devs and theme authors



disable_captions › WordPress Filter Hooks

Since2.6.0
Deprecatedn/a
apply_filters( 'disable_captions', '' )
Parameters:
  • () bool Whether to disable appending captions. Returning true from the filter will disable captions. Default empty string.
    Required: Yes
Defined at:
Codex:

Filters whether to disable captions.

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




Source

if ( empty( $caption ) || apply_filters( 'disable_captions', '' ) ) {