aioseo_rest_api_post_types

aioseo_rest_api_post_types

Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.9.9

apply_filters('aioseo_rest_api_post_types') is found 1 times:

  • /app/Common/RestApi/Controllers/Post.php line 28
    	 * @return void
    	 */
    	public function register() {
    		$postTypes = aioseo()->helpers->getPublicPostTypes( true );
    		$postTypes = apply_filters( 'aioseo_rest_api_post_types', $postTypes );
    
    		$supportedPostTypes = [];
    		foreach ( $postTypes as $postType ) {
    			$postTypeObject = get_post_type_object( $postType );
    
    			if (