get_theme_starter_content WordPress Filter Hook

The get_theme_starter_content hook allows a theme to specify its default content, which can be used to populate a new site. This content can be overridden by the user, but is a useful starting point for creating a new site.

apply_filters( 'get_theme_starter_content', array $content, array $config ) #

Filters the expanded array of starter content.


Parameters

$content

(array)Array of starter content.

$config

(array)Array of theme-specific starter content configuration.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More