wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_register_core_ability_categories › WordPress Function

Since6.9.0
Deprecatedn/a
wp_register_core_ability_categories ( No parameters )
Defined at:
Codex:
Change Log:
  • 7.2.0

Registers the core ability categories.



Source

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(
		'uncategorized',
		array(
			'label'       => __( 'Uncategorized' ),
			'description' => __( 'Abilities that have not been assigned to a specific category.' ),
		)
	);
}