hooked_block

hooked_block

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.8

apply_filters('hooked_block') is found 2 times:

  • /wp-includes/blocks.php line 969
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    * @param array                           $parsed_anchor_block The anchor block, in parsed block array format.
     * @param WP_Block_Template|WP_Post|array $context             The block template, template part, post object,
     *                                                             or pattern that the anchor block belongs to.
     */
    $parsed_hooked_block = apply_filters( 'hooked_block', $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context );
     
    /**
     * Filters the parsed block array for a given hooked block.
     *
     * The dynamic portion of the hook name, `$hooked_block_type`, refers to the block type name of the specific hooked block.
     *
  • /wp-includes/blocks.php line 1040
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
        'innerContent' => array(),
    );
     
    /** This filter is documented in wp-includes/blocks.php */
    $parsed_hooked_block = apply_filters( 'hooked_block', $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context );
     
    /** This filter is documented in wp-includes/blocks.php */
    $parsed_hooked_block = apply_filters( "hooked_block_{$hooked_block_type}", $parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context );
     
    if ( null === $parsed_hooked_block ) {
        unset( $hooked_block_types[ $index ] );