get_theme_starter_content
Filters the expanded array of starter content.
Использование
add_filter( 'get_theme_starter_content', 'wp_kama_get_theme_starter_content_filter', 10, 2 );
/**
* Function for `get_theme_starter_content` filter-hook.
*
* @param array $content Array of starter content.
* @param array $config Array of theme-specific starter content configuration.
*
* @return array
*/
function wp_kama_get_theme_starter_content_filter( $content, $config ){
// filter...
return $content;
}
- $content(массив)
- Array of starter content.
- $config(массив)
- Array of theme-specific starter content configuration.
Список изменений
| С версии 4.7.0 | Введена. |
Где вызывается хук
get_theme_starter_content
wp-includes/theme.php 2609
return apply_filters( 'get_theme_starter_content', $content, $config );