wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_register_core_ability_categories › WordPress Function

Since6.9.0
已弃用n/a
› wp_register_core_ability_categories ( 没有参数 )
定义在:
文档:
Change Log:
  • 7.2.0

Registers the core ability categories.



源码

function wp_register_core_ability_categories(): void {
	wp_register_ability_category(
		'site',
		array(
			'label'       => __( 'Site' ),
			'description' => __( 'Abilities that retrieve or modify site information and settings.' ),
		)
	);

	wp_register_ability_category(
		'user',
		array(
			'label'       => __( 'User' ),
			'description' => __( 'Abilities that retrieve or modify user information and settings.' ),
		)
	);

	wp_register_ability_category(
		'content',
		array(
			'label'       => __( 'Content' ),
			'description' => __( 'Abilities that retrieve or manage posts and other content.' ),
		)
	);

	wp_register_ability_category(
		'uncategorized',
		array(
			'label'       => __( 'Uncategorized' ),
			'description' => __( 'Abilities that have not been assigned to a specific category.' ),
		)
	);
}