An Introduction to v2
Installing WP-API
$ git clone https://github.com/WP-API/WP-API.git
Using WP-API
/wp-json/wp/v2/posts
Using WP-API
Using WP-API
add_filter( 'rest_url_prefix', function( $prefix ) {
return 'api';
} );
Using WP-API
add_filter( 'rest_url_prefix', function( $prefix ) {
return 'api';
} );
/api
Using WP-API
add_filter( 'rest_url_prefix', function( $prefix ) {
return 'api';
} );
/api/wp
Using WP-API
add_filter( 'rest_url_prefix', function( $prefix ) {
return 'api';
} );
/api/wp/v2
Using WP-API
add_filter( 'rest_url_prefix', function( $prefix ) {
return 'api';
} );
/api/wp/v2/{resource}
add_filter( 'rest_url_prefix', function( $prefix ) {
return 'api';
} );
ENVR
Using WP-API...or not.
add_filter( 'rest_enabled', '__return_false' );
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Understanding WP-API
Glossary of Terms
Console Time!