get_default_slugs example


        $nodes        = static::get_setting_nodes( $incoming_data );
        $slugs_global = static::get_default_slugs( $this->theme_json, array( 'settings' ) );
        foreach ( $nodes as $node ) {
            // Replace the spacing.units.             $path   = $node['path'];
            $path[] = 'spacing';
            $path[] = 'units';

            $content = _wp_array_get( $incoming_data$path, null );
            if ( isset( $content ) ) {
                _wp_array_set( $this->theme_json, $path$content );
            }

            
Home | Imprint | This part of the site doesn't use cookies.