Rarst\Fragment_Cache\Menu_Cache::wp_nav_menu_args PHP 메소드

wp_nav_menu_args() 공개 메소드

Fake no menu matches to force menu run custom callback.
사용 중단:
public wp_nav_menu_args ( array $args ) : array
$args array Menu arguments.
리턴 array
    public function wp_nav_menu_args($args)
    {
        _deprecated_function(__FUNCTION__, '1.3', 'Menu cache with arguments override unnecessary on WP >= 3.9.');
        if (empty($args['kessel_run'])) {
            add_filter('wp_get_nav_menus', '__return_empty_array');
            // These are not the droids you are looking for.
            $args = array('menu' => '', 'theme_location' => '', 'fallback_cb' => array($this, 'fallback_cb'), 'original_args' => $args);
        }
        return $args;
    }