Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.08 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.08 KB

WP Parser

WP-Parser is the parser for creating the new code reference at developer.wordpress.org. It parses the inline documentation and produces custom post types in WordPress.

We are currently looking for contributors to help us complete the work on the parser.

There is a guide to developing for developer.wordpress.org in the WordPress documentation handbook

Requirements

After cloning from Git set up dependencies via:

composer install --no-dev

Running

Note: ensure the plugin is enabled first.

In your site's directory:

$ wp funcref generate-and-import /path/to/source/code --user=<id|login>

Displaying in your theme

By default, your theme will use the built-in content. This content is generated on the fly by the expand_content function.

To use your own theming instead, simply add the following to your functions.php:

remove_filter( 'the_content', 'WP_Parser\\expand_content' );