do_action( 'wp_abilities_api_init', WP_Abilities_Registry $instance )
- Since
- 6.9.0
Fires when preparing abilities registry.
Description
Abilities should be created and register their hooks on this action rather than another action to ensure they're only loaded when needed.
Parameters
$instanceWP_Abilities_Registry- Abilities registry object.
Fired at · 1
wp-includes/abilities-api/class-wp-abilities-registry.php:303WP_Abilities_Registry::get_instance()
Source
View on Trac ↗View on GitHub ↗
297<?php298 * than another action to ensure they're only loaded when needed.299 *300 * @since 6.9.0301 *302 * @param WP_Abilities_Registry $instance Abilities registry object.303 */304 do_action( 'wp_abilities_api_init', self::$instance );305 }306 307 return self::$instance;308 }309 310 /**
History
Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
- 6.9.7
- 7.0.4
- 7.1.0
Signature, return type and hooks compared across 3 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.