WordPress filter hook

abilities_api_register_core_abilities

Fired by 4 WordPress plugins, running on 60K+ sites between them.

How to use abilities_api_register_core_abilities

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'abilities_api_register_core_abilities', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from wpDataTables's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire abilities_api_register_core_abilities

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. wpDataTables icon wpDataTables60,000+ installs apply_filters( 'abilities_api_register_core_abilities', false ) lib/wordpress/abilities-api/includes/bootstrap.php:51
  2. ClearPost icon ClearPost80+ installs apply_filters( 'abilities_api_register_core_abilities', false ) lib/abilities-api/wordpress/abilities-api/includes/bootstrap.php:51
  3. Airo WP AI Builder icon Airo WP AI Builder40+ installs apply_filters( 'abilities_api_register_core_abilities', false ) dependencies/wordpress/abilities-api/includes/bootstrap.php:51
  4. Cognitcxt AI Chat Assistant for WooCommerce icon Cognitcxt AI Chat Assistant for WooCommerceFewer than 10 installs apply_filters( 'abilities_api_register_core_abilities', false ) includes/abilities-api/bootstrap.php:51

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.