WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about customize_dynamic_partial_args

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/customize/class-wp-customize-selective-refresh.php apply_filters 102 /**
* Adds a partial.
*
* @since 4.5.0
*
* @see WP_Customize_Partial::__construct()
*
* @param WP_Customize_Partial|string $id Customize Partial object, or Partial ID.
* @param array $args Optional. Array of properties for the new Partials object.
* See WP_Customize_Partial::__construct() for information
* on accepted arguments. Default empty array.
* @return WP_Customize_Partial The instance of the partial that was added.
*/
wp-includes/customize/class-wp-customize-selective-refresh.php apply_filters 235 /**
* Filters a dynamic partial's constructor arguments.
*
* For a dynamic partial to be registered, this filter must be employed
* to override the default false value with an array of args to pass to
* the WP_Customize_Partial constructor.
*
* @since 4.5.0
*
* @param false|array $partial_args The arguments to the WP_Customize_Partial constructor.
* @param string $partial_id ID for dynamic partial.
*/

Hook Parameters

Parameter Type Name Description