From 1040d5543c37bc9da8d15625c0ed3dcfa944710a Mon Sep 17 00:00:00 2001 From: Arnaud Banvillet Date: Tue, 7 Oct 2014 09:32:46 +0200 Subject: [PATCH] Wrong variable name There was a wrong variable name in the exemple of adding endpoint extending WP_JSON_CustomPostType --- guides/extending.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/extending.md b/guides/extending.md index d013bb1..cd17e78 100644 --- a/guides/extending.md +++ b/guides/extending.md @@ -274,7 +274,7 @@ hooking and more for you: require_once dirname( __FILE__ ) . '/class-myplugin-api-mytype.php'; $myplugin_api_mytype = new MyPlugin_API_MyType( $server ); - $myplugin->register_filters(); + $myplugin_api_mytype->register_filters(); } add_action( 'wp_json_server_before_serve', 'myplugin_api_init' );