Skip to content

Updated Abilities package documentation #76349

Open

Description

@jonathanbossenger

https://github.com/WordPress/gutenberg/tree/trunk/packages/abilities

The Abilities package will ship with WordPress 7.0 by default, but the script module just needs to be enqueued in plugins to use it.

Update usage examples as well.

Activity

  1. jonathanbossenger commented on Mar 10, 2026

    @jonathanbossenger
    ContributorAuthor
    add_action( 'admin_enqueue_scripts', 'myplugin_enqueue_admin_script_modules' );
    function myplugin_enqueue_admin_script_modules() {
    	wp_enqueue_script_module( '@wordpress/core-abilities' );
    }
    

    Props @jorgefilipecosta for the code snippet.

  2. im3dabasia commented on Mar 10, 2026

    @im3dabasia
    Contributor

    @jonathanbossenger, I just wanted to check if you’re currently working on this issue. If not, I’d be happy to raise a PR and assign it to you for review once it’s ready.

  3. jonathanbossenger commented on Mar 10, 2026

    @jonathanbossenger
    ContributorAuthor

    @im3dabasia I am working on the issue, that's why I assigned it to myself.

  4. westonruter commented on Apr 12, 2026

    @westonruter
    Member

    The Abilities package will ship with WordPress 7.0 by default, but the script module just needs to be enqueued in plugins to use it.

    More is needed than this, actually. To use the abilities, you have to wait for them to be fetched via the REST API. See:

  5. added
    [Status] In Progress
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Package] Abilities[Status] In Progress[Type] Developer Documentation

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions