⬢ wp shell
wp> foreach ( wp_get_abilities() as $a ) echo $a->get_name() . "\n";
core/get-site-info
core/get-environment-info
site/site-info
list-all-urls/urls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { getBlockTypes, getBlockVariations } = wp.data.select('core/blocks'); | |
| getBlockTypes() | |
| .filter(({ name }) => getBlockVariations(name).length) | |
| .map(({ name }) => ({ [name]: getBlockVariations(name) })); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wp.data | |
| .select('core/blocks') | |
| .getBlockTypes() | |
| .filter(({ name }) => !name.includes('core/')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Helper: wait for all records of a given post type. | |
| const getTypes = async ( types ) => { | |
| return await Promise.all( | |
| types.map( | |
| ( type ) => | |
| new Promise( ( resolve ) => { | |
| const unsub = wp.data.subscribe( () => { | |
| const items = wp.data | |
| .select( 'core' ) | |
| .getEntityRecords( 'postType', type ); |
Version: October 2025 Based on: official Core AI Team documentation and the workshop "Turn your local WordPress install into your AI coding assistant" (WordCamp US 2025, Jonathan Bossinger)
Versión: Octubre 2025 Basado en: la documentación oficial del Core AI Team y el taller "Convierte tu instalación local de WordPress en tu asistente de codificación con IA" (WordCamp US 2025, Jonathan Bossenger)
“Further” — means more or to a greater degree. It’s often used in more formal English.
- Distance: “This is further away than that.” → Describes something that’s at a greater physical distance.
- Degree or detail: “Let’s discuss this in further detail.” → Means in more depth or more precisely.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // #region loggerMiddleware | |
| const loggerMiddleware = ( optionsLogger ) => ( store ) => ( next ) => { | |
| const actions = []; | |
| return ( action ) => { | |
| const { whatToLog, storeName, storesToLog } = optionsLogger; | |
| if ( storesToLog.includes( storeName ) ) { | |
| if ( whatToLog.includes( 'action' ) ) { | |
| console.log( { storeName, ...action } ); | |
| } | |
| if ( whatToLog.includes( 'prevState' ) ) { |
NewerOlder