customize_dynamic_partial_args

customize_dynamic_partial_args

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('customize_dynamic_partial_args') is found 2 times:

  • /wp-includes/customize/class-wp-customize-selective-refresh.php line 102
    		} 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
    			 *
    			 * @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.