[wp-trac] [WordPress Trac] #49615: Editor: Support filtering arguments in block type registration
WordPress Trac
noreply at wordpress.org
Wed Jul 1 12:47:10 UTC 2020
#49615: Editor: Support filtering arguments in block type registration
-------------------------------------------------+-------------------------
Reporter: aduth | Owner: gziolo
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.5
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Changes (by gziolo):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests needs-
dev-note
Comment:
This ticket introduces a new filter:
{{{#!php
<?php
/**
* Filters the arguments for registering a block type.
*
* @since 5.5.0
*
* @param array $args Array of arguments for registering a
* block type.
* @param string $block_type Block type name including namespace.
*/
$args = apply_filters( 'register_block_type_args', $args, $this->name );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49615#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list