customize_dynamic_partial_args

Advertisement

Summery Summery

Filters a dynamic partial’s constructor arguments.

Syntax Syntax

apply_filters( 'customize_dynamic_partial_args', false|array $partial_args, string $partial_id )

Description Description

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.

Parameters Parameters

$partial_args

(false|array) The arguments to the WP_Customize_Partial constructor.

$partial_id

(string) ID for dynamic partial.

Source Source

File: wp-includes/customize/class-wp-customize-selective-refresh.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.