aioseo_is_rest_api_request

aioseo_is_rest_api_request

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

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

apply_filters('aioseo_is_rest_api_request') is found 1 times:

  • /app/Common/Traits/Helpers/WpContext.php line 703
    		$restUrl = $restUrl['path'] . ( ! empty( $restUrl['query'] ) ? '?' . $restUrl['query'] : '' );
    
    		$isRestApiRequest = ( 0 === strpos( sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ), $restUrl ) );
    
    		return apply_filters( 'aioseo_is_rest_api_request', $isRestApiRequest );
    	}
    
    	/**
    	 * Checks whether the current request is an AJAX, CRON or REST request.
    	 *
    	 * @since 4.1.3