wp-includes/abilities-api/class-wp-ability-categories-registry.php:203Utility method to retrieve the main instance of the registry class.
WP_Ability_Categories_Registry|nullOne hook fires while WP_Ability_Categories_Registry::get_instance() runs, in this order:
Fires when preparing ability categories registry.
public static function get_instance(): ?self { if ( ! did_action( 'init' ) ) { _doing_it_wrong( __METHOD__, sprintf( // translators: %s: init action. __( 'Ability API should not be initialized before the %s action has fired.' ), '<code>init</code>' ), '6.9.0' ); return null; } if ( null === self::$instance ) { self::$instance = new self(); /** * Fires when preparing ability categories registry. * * Ability categories should be registered on this action to ensure they're available when needed. * * @since 6.9.0 * * @param WP_Ability_Categories_Registry $instance Ability categories registry object. */ do_action( 'wp_abilities_api_categories_init', self::$instance ); } return self::$instance; }Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
src/wp-includes/abilities-api/class-wp-ability-categories-registry.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.