Fixed rest_api_allowed_post_types filter

This commit is contained in:
Claudio Sanches 2015-08-04 13:49:24 -03:00
parent cb322949bd
commit 2954707118
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class WC_Post_types {
add_action( 'init', array( __CLASS__, 'register_post_types' ), 5 );
add_action( 'init', array( __CLASS__, 'register_post_status' ), 9 );
add_action( 'init', array( __CLASS__, 'support_jetpack_omnisearch' ) );
add_action( 'rest_api_allowed_post_types', array( __CLASS__, 'rest_api_allowed_post_types' ) );
add_filter( 'rest_api_allowed_post_types', array( __CLASS__, 'rest_api_allowed_post_types' ) );
}
/**