get_theme_starter_content
Filters the expanded array of starter content.
Description
Parameters (2)
- 0. $content (array)
- Array of starter content.
- 1. $config (array)
- Array of theme-specific starter content configuration.
Usage
- To run the hook, copy the example below.
- $content = apply_filters( 'get_theme_starter_content', $content, $config );
- if ( !empty( $content ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the get_theme_starter_content callback
- function filter_get_theme_starter_content( $content, $config ) {
- // make filter magic happen here...
- return $content;
- };
- // add the filter
- add_filter( 'get_theme_starter_content', 'filter_get_theme_starter_content', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'get_theme_starter_content', 'filter_get_theme_starter_content', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/theme.php
- return apply_filters( 'get_theme_starter_content', $content, $config );