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:

1 to 100 of 319
function get_theme_starter_content() {
  $theme_support = get_theme_support( 'starter-content' );
  if ( is_array( $theme_support ) && ! empty( $theme_support[0] ) && is_array( $theme_support[0] ) ) {
    $config = $theme_support[0];
  } else {
    $config = array();
  }

  $core_content = array(
    'widgets'   => array(
      'text_business_info' => array(
        'text',
        array(
          'title'  => _x( 'Find Us', 'Theme starter content' ),
          'text'   => implode(
            '',
            array(
              '<strong>' . _x( 'Address', 'Theme starter content' ) . "</strong>\n",
              _x( '123 Main Street', 'Theme starter content' ) . "\n",
              _x( 'New York, NY 10001', 'Theme starter content' ) . "\n\n",
              '<strong>' . _x( 'Hours', 'Theme starter content' ) . "</strong>\n",
              _x( 'Monday&ndash;Friday: 9:00AM&ndash;5:00PM', 'Theme starter content' ) . "\n",
              _x( 'Saturday &amp; Sunday: 11:00AM&ndash;3:00PM', 'Theme starter content' ),
            )
          ),
          'filter' => true,
          'visual' => true,
        ),
      ),
      'text_about'         => array(
        'text',
        array(
          'title'  => _x( 'About This Site', 'Theme starter content' ),
          'text'   => _x( 'This may be a good place to introduce yourself and your site or include some credits.', 'Theme starter content' ),
          'filter' => true,
          'visual' => true,
        ),
      ),
      'archives'           => array(
        'archives',
        array(
          'title' => _x( 'Archives', 'Theme starter content' ),
        ),
      ),
      'calendar'           => array(
        'calendar',
        array(
          'title' => _x( 'Calendar', 'Theme starter content' ),
        ),
      ),
      'categories'         => array(
        'categories',
        array(
          'title' => _x( 'Categories', 'Theme starter content' ),
        ),
      ),
      'meta'               => array(
        'meta',
        array(
          'title' => _x( 'Meta', 'Theme starter content' ),
        ),
      ),
      'recent-comments'    => array(
        'recent-comments',
        array(
          'title' => _x( 'Recent Comments', 'Theme starter content' ),
        ),
      ),
      'recent-posts'       => array(
        'recent-posts',
        array(
          'title' => _x( 'Recent Posts', 'Theme starter content' ),
        ),
      ),
      'search'             => array(
        'search',
        array(
          'title' => _x( 'Search', 'Theme starter content' ),
        ),
      ),
    ),
    'nav_menus' => array(
      'link_home'       => array(
        'type'  => 'custom',
        'title' => _x( 'Home', 'Theme starter content' ),
        'url'   => home_url( '/' ),
      ),
      'page_home'       => array( // Deprecated in favor of 'link_home'.
        'type'      => 'post_type',
        'object'    => 'page',
        'object_id' => '{{home}}',
      ),
      'page_about'      => array(
        'type'      => 'post_type',
        'object'    => 'page',
        'object_id' => '{{about}}',
      ),
      'page_blog'       => array(
        'type'      => 'post_type',
        'object'    => 'page',
 

 View on GitHub View on Trac