
创建和测试WordPress可访问性
do_action( "in_theme_update_message-{$theme_key}", $theme, $response )
in_theme_update_message- {$theme_key} – 这个动作钩子是在主题更新界面触发的,它允许你在主题更新信息中添加自定义信息。钩子名称中的{$theme_key}参数代表了主题密钥或标识符。
在主题列表表的每一行中的更新消息容器末尾触发。
钩子名称的动态部分$theme_key
引用了WordPress.org主题库中的主题slug。
do_action( "in_theme_update_message-{$theme_key}", $theme, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores