Make WordPress Core

Changeset 55174


Ignore:
Timestamp:
02/01/2023 03:27:14 PM (21 months ago)
Author:
SergeyBiryukov
Message:

Docs: Document the inserter property in WP_Block_Patterns_Registry::register().

Follow-up to [53152], [55173].

See #56792.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-patterns-registry.php

    r55173 r55174  
    6060     *     @type int    $viewportWidth Optional. The intended width of the pattern to allow for a scaled
    6161     *                                 preview within the pattern inserter.
     62     *     @type bool   $inserter      Optional. Determines whether the pattern is visible in inserter.
     63     *                                 To hide a pattern so that it can only be inserted programmatically,
     64     *                                 set this to false. Default true.
    6265     *     @type array  $categories    Optional. A list of registered pattern categories used to group
    6366     *                                 block patterns. Block patterns can be shown on multiple categories.
Note: See TracChangeset for help on using the changeset viewer.