Lines: 1 to 20 of 20
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /* class WC_API_Resource */ /* function WC_API_Resource::__construct() – Setup class */ /* function WC_API_Resource::validate_request() – Validate the request by checking: */ /* function WC_API_Resource::merge_query_args() – Add common request arguments to argument list before WP_Query is run */ /* function WC_API_Resource::maybe_add_meta() – Add meta to resources when requested by the client. Meta is added as a top-level `<resource_name>_meta` attribute (e.g. `order_meta`) as a list of key/value pairs */ /* function WC_API_Resource::filter_response_fields() – Restrict the fields included in the response if the request specified certain only certain fields should be returned */ /* function WC_API_Resource::delete() – Delete a given resource */ /* function WC_API_Resource::is_readable() – Checks if the given post is readable by the current user */ /* function WC_API_Resource::is_editable() – Checks if the given post is editable by the current user */ /* function WC_API_Resource::is_deletable() – Checks if the given post is deletable by the current user */ /* function WC_API_Resource::check_permission() – Checks the permissions for the current user given a post and context */