Filter hook 'get_theme_starter_content'

in WP Core File wp-includes/theme.php at line 2598

View Source

get_theme_starter_content

Filter Hook
Description
Filters the expanded array of starter content.

Hook Information

File Location wp-includes/theme.php View on GitHub
Hook Type Filter
Line Number 2598

Hook Parameters

Type Name Description
array $content Array of starter content.
array $config Array of theme-specific starter content configuration.

Usage Examples

Basic Usage
<?php
// Hook into get_theme_starter_content
add_filter('get_theme_starter_content', 'my_custom_filter', 10, 2);

function my_custom_filter($content, $config) {
    // Your custom filtering logic here
    return $content;
}

Source Code Context

wp-includes/theme.php:2598 - How this hook is used in WordPress core
<?php
2593  	 * @since 4.7.0
2594  	 *
2595  	 * @param array $content Array of starter content.
2596  	 * @param array $config  Array of theme-specific starter content configuration.
2597  	 */
2598  	return apply_filters( 'get_theme_starter_content', $content, $config );
2599  }
2600  
2601  /**
2602   * Registers theme support for a given feature.
2603   *

PHP Documentation

<?php
/**
	 * Filters the expanded array of starter content.
	 *
	 * @since 4.7.0
	 *
	 * @param array $content Array of starter content.
	 * @param array $config  Array of theme-specific starter content configuration.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/theme.php
Related Hooks

Related hooks will be displayed here in future updates.