Adds a new sidebar to the block editor for post types that support wporg-internal-notes
. Editors can leave notes about the current post that other editors can read, but the notes are not visible on the front end.
To enable internal notes for a particular post type, add this line to an mu-plugin or somewhere in the plugin that registers the post type:
add_post_type_support( '[post type slug here]', 'wporg-internal-notes' );
To enable log entries for changes to posts, which will appear in the same stream with internal notes, add this line:
add_post_type_support( '[post type slug here]', 'wporg-log-notes' );
You can also specify only certain change events to log. See logging_enabled()
for a list of available events.
add_post_type_support( '[post type slug here]', 'wporg-log-notes', array( 'status-change' => true ) );
yarn run initial-setup
yarn run env
yarn workspaces run build
. The plugin won't function until this step is done.localhost:8888
admin
and password password
These must be run in the project's root folder, not in theme/plugin subfolders.
yarn run env:stop
or yarn run wp-env stop
yarn run env
or yarn run wp-env start
yarn workspaces run build
yarn workspaces run start