钩子文档

get_theme_starter_content

💡 云策文档标注

概述

get_theme_starter_content 是一个 WordPress 过滤器,用于修改主题启动内容的扩展数组。它允许开发者基于主题特定配置调整核心提供的启动内容。

关键要点

  • 过滤器名称:get_theme_starter_content
  • 参数:$content(数组,启动内容数组)和 $config(数组,主题特定启动内容配置数组)
  • 用途:在 get_theme_starter_content() 函数中调用,用于扩展主题启动内容
  • 相关函数:get_theme_starter_content() 位于 wp-includes/theme.php,用于扩展主题启动内容配置
  • 引入版本:4.7.0

📄 原文内容

Filters the expanded array of starter content.

Parameters

$contentarray
Array of starter content.
$configarray
Array of theme-specific starter content configuration.

Source

return apply_filters( 'get_theme_starter_content', $content, $config );

Changelog

Version Description
4.7.0 Introduced.