Summery Summery
Sanitize post IDs for posts created for nav menu items to be published.
Syntax Syntax
Parameters Parameters
- $value
-
(Required) Post IDs.
Return Return
(array) Post IDs.
Source Source
File: wp-includes/class-wp-customize-nav-menus.php
/** * Filters arguments for dynamic nav_menu selective refresh partials. * * @since 4.5.0 * * @param array|false $partial_args Partial args. * @param string $partial_id Partial ID. * @return array Partial args. */ public function customize_dynamic_partial_args( $partial_args, $partial_id ) { if ( preg_match( '/^nav_menu_instance\[[0-9a-f]{32}\]$/', $partial_id ) ) { if ( false === $partial_args ) { $partial_args = array(); } $partial_args = array_merge( $partial_args, array( 'type' => 'nav_menu_instance', 'render_callback' => array( $this, 'render_nav_menu_partial' ), 'container_inclusive' => true,
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |