Skip to content

smckeown/WP-Parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' );

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%