wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



disable_captions › WordPress Filter Hooks

Seit2.6.0
Veraltetn/v
apply_filters( 'disable_captions', '' )
Parameter:
  • () bool Whether to disable appending captions. Returning true from the filter will disable captions. Default empty string.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether to disable captions.

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




Quellcode

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