customize_dynamic_partial_args

customize_dynamic_partial_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('customize_dynamic_partial_args') is found 2 times:

  • /wp-includes/customize/class-wp-customize-selective-refresh.php line 102
    098
    099
    100
    101
    102
    103
    104
    105
    106
    107
    108
    } else {
        $class = 'WP_Customize_Partial';
     
        /** This filter is documented in wp-includes/customize/class-wp-customize-selective-refresh.php */
        $args = apply_filters( 'customize_dynamic_partial_args', $args, $id );
     
        /** This filter is documented in wp-includes/customize/class-wp-customize-selective-refresh.php */
        $class = apply_filters( 'customize_dynamic_partial_class', $class, $id, $args );
     
        $partial = new $class( $this, $id, $args );
    }
  • /wp-includes/customize/class-wp-customize-selective-refresh.php line 235
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    *
     * @param false|array $partial_args The arguments to the WP_Customize_Partial constructor.
     * @param string      $partial_id   ID for dynamic partial.
     */
    $partial_args = apply_filters( 'customize_dynamic_partial_args', $partial_args, $partial_id );
    if ( false === $partial_args ) {
        continue;
    }
     
    /**
     * Filters the class used to construct partials.