• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Test_WP_Customize_Selective_Refresh::filter_customize_dynamic_partial_args() – Filter customize_dynamic_partial_args.

You appear to be a bot. Output may be restricted

Description

Filter customize_dynamic_partial_args.

Usage

$false|array = Test_WP_Customize_Selective_Refresh::filter_customize_dynamic_partial_args( $partial_args, $partial_id );

Parameters

$partial_args
( false|array ) required – The arguments to the WP_Customize_Partial constructor.
$partial_id
( string ) required – ID for dynamic partial.

Returns

false|array Dynamic partial args.

Source

File name: wordpress-develop-tests/phpunit/tests/customize/selective-refresh.php


Lines:

1 to 13 of 13
  public function filter_customize_dynamic_partial_args( $partial_args, $partial_id ) {
    $this->assertTrue( false === $partial_args || is_array( $partial_args ) );
    $this->assertIsString( $partial_id );

    if ( preg_match( '/^recognized/', $partial_id ) ) {
      $partial_args = array(
        'selector' => '.recognized',
      );
    }

    return $partial_args;
  }
 

 View on GitHub

Published: 26th November 2019 | Last updated: 20th March 2022

Primary Sidebar

Information

Function name: Test_WP_Customize_Selective_Refresh::filter_customize_dynamic_partial_args
Class ref: Test_WP_Customize_Selective_Refresh
Plugin ref: WordPress develop tests
Version: 5.9.3
Sourcefile: phpunit/tests/customize/selective-refresh.php
File ref: phpunit/tests/customize/selective-refresh.php
Deprecated?: No
API Letters: C,R,S,T,W

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 6.4.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites