get_theme_starter_content() – Expands a theme’s starter content configuration using core-provided data.

You appear to be a bot. Output may be restricted

Description

Expands a theme's starter content configuration using core-provided data.

Usage

$array = get_theme_starter_content();

Parameters

Returns

array Array of starter content.

Source

File name: wordpress/wp-includes/theme.php
Lines:

301 to 319 of 319
            );
          } elseif ( is_string( $item ) && ! empty( $core_content[ $type ][ $item ] ) ) {
            $content[ $type ][ $item ] = $core_content[ $type ][ $item ];
          }
        }
        break;
    }
  }

  
/**
 * Filters the expanded array of starter content.
 *
 * @since 4.7.0
 *
 * @param array $content Array of starter content.
 * @param array $config  Array of theme-specific starter content configuration.
 */
  return apply_filters( 'get_theme_starter_content', $content, $config );
}
 

 View on GitHub View on Trac