X7ROOT File Manager
Current Path:
/home/notabjze/starbudzca.com/wp-content/plugins/woocommerce/src/Admin/API
home
/
notabjze
/
starbudzca.com
/
wp-content
/
plugins
/
woocommerce
/
src
/
Admin
/
API
/
ðŸ“
..
📄
Coupons.php
(2.15 KB)
📄
CustomAttributeTraits.php
(3.4 KB)
📄
Customers.php
(2.11 KB)
📄
Data.php
(939 B)
📄
DataCountries.php
(1.12 KB)
📄
DataDownloadIPs.php
(4.15 KB)
📄
Experiments.php
(1.82 KB)
📄
Features.php
(1.7 KB)
📄
Init.php
(8.47 KB)
📄
Leaderboards.php
(17.7 KB)
📄
Marketing.php
(4.08 KB)
📄
MarketingCampaignTypes.php
(6.02 KB)
📄
MarketingCampaigns.php
(7.47 KB)
📄
MarketingChannels.php
(5.74 KB)
📄
MarketingOverview.php
(3.36 KB)
📄
MarketingRecommendations.php
(5.94 KB)
📄
MobileAppMagicLink.php
(2.1 KB)
📄
NavigationFavorites.php
(4.83 KB)
📄
NoteActions.php
(2.39 KB)
📄
Notes.php
(25.79 KB)
📄
OnboardingFreeExtensions.php
(3.75 KB)
📄
OnboardingPlugins.php
(11.93 KB)
📄
OnboardingProductTypes.php
(1.8 KB)
📄
OnboardingProducts.php
(1.94 KB)
📄
OnboardingProfile.php
(16.29 KB)
📄
OnboardingTasks.php
(31.93 KB)
📄
OnboardingThemes.php
(13.7 KB)
📄
Options.php
(9.45 KB)
📄
Orders.php
(10.17 KB)
📄
PaymentGatewaySuggestions.php
(5.44 KB)
📄
Plugins.php
(19.99 KB)
📄
ProductAttributeTerms.php
(4.36 KB)
📄
ProductAttributes.php
(4.46 KB)
📄
ProductCategories.php
(458 B)
📄
ProductForm.php
(3.06 KB)
📄
ProductReviews.php
(1.3 KB)
📄
ProductVariations.php
(5.97 KB)
📄
Products.php
(9.7 KB)
📄
ProductsLowInStock.php
(13.93 KB)
ðŸ“
Reports
📄
SettingOptions.php
(878 B)
📄
ShippingPartnerSuggestions.php
(5.74 KB)
📄
Taxes.php
(4.9 KB)
ðŸ“
Templates
📄
Themes.php
(6.09 KB)
Editing: Features.php
<?php /** * REST API Features Controller * * Handles requests to /features */ namespace Automattic\WooCommerce\Admin\API; defined( 'ABSPATH' ) || exit; use Automattic\WooCommerce\Admin\Features\Features as FeaturesClass; /** * Features Controller. * * @internal * @extends WC_REST_Data_Controller */ class Features extends \WC_REST_Data_Controller { /** * Endpoint namespace. * * @var string */ protected $namespace = 'wc-admin'; /** * Route base. * * @var string */ protected $rest_base = 'features'; /** * Register routes. */ public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base, array( array( 'methods' => \WP_REST_Server::READABLE, 'callback' => array( $this, 'get_features' ), 'permission_callback' => array( $this, 'get_items_permissions_check' ), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); } /** * Check whether a given request has permission to read onboarding profile data. * * @param WP_REST_Request $request Full details about the request. * @return WP_Error|boolean */ public function get_items_permissions_check( $request ) { if ( ! wc_rest_check_manager_permissions( 'settings', 'read' ) ) { return new \WP_Error( 'woocommerce_rest_cannot_view', __( 'Sorry, you cannot list resources.', 'woocommerce' ), array( 'status' => rest_authorization_required_code() ) ); } return true; } /** * Return available payment methods. * * @param \WP_REST_Request $request Request data. * * @return \WP_Error|\WP_REST_Response */ public function get_features( $request ) { return FeaturesClass::get_available_features(); } }
Upload File
Create Folder