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



wp_classic_block_supports_inserter › WordPress Filter Hooks

Seitn/v
Veraltetn/v
apply_filters( 'wp_classic_block_supports_inserter', false, get_post()
Parameter: (2)
  • () supports_inserter Whether the Classic block is available in the inserter.
    Erforderlich: Ja
  • () post The post being edited, or null if not in the post editor.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether the Classic block should be available in the inserter.

Defaults to false. Use this filter to opt in (globally or per post).




Quellcode

if ( ! (bool) apply_filters( 'wp_classic_block_supports_inserter', false, get_post() ) ) {