Skip to content

Instantly share code, notes, and snippets.

@websupporter
Last active January 20, 2017 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save websupporter/042c7a22417a4f110c95e02e4234de4e to your computer and use it in GitHub Desktop.
Save websupporter/042c7a22417a4f110c95e02e4234de4e to your computer and use it in GitHub Desktop.
<?php
add_action( 'after_setup_theme', 'theme_start_content' );
function theme_starter_content() {
add_theme_support( 'starter-content', array(
'posts' => array(
'test' => array(
'post_type' => 'page',
'post_title' => _x( 'Das ist ein Test', 'theme-slug' ),
'post_content' => _x( 'Hier habe ich eine Testseite angelegt.', 'theme-slug' ),
),
),
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment