array( 'title' => __( 'Downloads', 'woocommerce' ), 'desc' => __( 'Endpoint for the "My account → Downloads" page.', 'woocommerce' ), 'id' => 'woocommerce_myaccount_downloads_endpoint', 'type' => 'text', 'default' => 'downloads', 'desc_tip' => true, ), array( 'title' => __( 'Edit account', 'woocommerce' ), 'desc' => __( 'Endpoint for the "My account → Edit account" page.', 'woocommerce' ), 'id' => 'woocommerce_myaccount_edit_account_endpoint', 'type' => 'text', 'default' => 'edit-account', 'desc_tip' => true, ), array( 'title' => __( 'Addresses', 'woocommerce' ), 'desc' => __( 'Endpoint for the "My account → Addresses" page.', 'woocommerce' ), 'id' => 'woocommerce_myaccount_edit_address_endpoint', 'type' => 'text', 'default' => 'edit-address', 'desc_tip' => true, ), array( 'title' => __( 'Payment methods', 'woocommerce' ), 'desc' => __( 'Endpoint for the "My account → Payment methods" page.', 'woocommerce' ), 'id' => 'woocommerce_myaccount_payment_methods_endpoint', 'type' => 'text', 'default' => 'payment-methods', 'desc_tip' => true, ), array( 'title' => __( 'Lost password', 'woocommerce' ), 'desc' => __( 'Endpoint for the "My account → Lost password" page.', 'woocommerce' ), 'id' => 'woocommerce_myaccount_lost_password_endpoint', 'type' => 'text', 'default' => 'lost-password', 'desc_tip' => true, ), array( 'title' => __( 'Logout', 'woocommerce' ), 'desc' => __( 'Endpoint for the triggering logout. You can add this to your menus via a custom link: yoursite.com/?customer-logout=true', 'woocommerce' ), 'id' => 'woocommerce_logout_endpoint', 'type' => 'text', 'default' => 'customer-logout', 'desc_tip' => true, ), array( 'type' => 'sectionend', 'id' => 'account_endpoint_options', ), ); $settings = apply_filters( 'woocommerce_settings_pages', $settings ); if ( wc_site_is_https() ) { unset( $settings['unforce_ssl_checkout'], $settings['force_ssl_checkout'] ); } return $settings; } /** * Get settings for the WooCommerce.com section. * * @return array */ protected function get_settings_for_woocommerce_com_section() { $tracking_info_text = sprintf( '%s', 'https://woocommerce.com/usage-tracking', esc_html__( 'WooCommerce.com Usage Tracking Documentation', 'woocommerce' ) ); $settings = array( array( 'title' => esc_html__( 'Usage Tracking', 'woocommerce' ), 'type' => 'title', 'id' => 'tracking_options', 'desc' => __( 'Gathering usage data allows us to tailor your store setup experience, offer more relevant content, and help make WooCommerce better for everyone.', 'woocommerce' ), ), array( 'title' => __( 'Enable tracking', 'woocommerce' ), 'desc' => __( 'Allow usage of WooCommerce to be tracked', 'woocommerce' ), /* Translators: %s URL to tracking info screen. */ 'desc_tip' => sprintf( esc_html__( 'To opt out, leave this box unticked. Your store remains untracked, and no data will be collected. Read about what usage data is tracked at: %s.', 'woocommerce' ), $tracking_info_text ), 'id' => 'woocommerce_allow_tracking', 'type' => 'checkbox', 'checkboxgroup' => 'start', 'default' => 'no', 'autoload' => false, ), array( 'type' => 'sectionend', 'id' => 'tracking_options', ), array( 'title' => esc_html__( 'Marketplace suggestions', 'woocommerce' ), 'type' => 'title', 'id' => 'marketplace_suggestions', 'desc' => __( 'We show contextual suggestions for official extensions that may be helpful to your store.', 'woocommerce' ), ), array( 'title' => __( 'Show Suggestions', 'woocommerce' ), 'desc' => __( 'Display suggestions within WooCommerce', 'woocommerce' ), 'desc_tip' => esc_html__( 'Leave this box unchecked if you do not want to pull suggested extensions from WooCommerce.com. You will see a static list of extensions instead.', 'woocommerce' ), 'id' => 'woocommerce_show_marketplace_suggestions', 'type' => 'checkbox', 'checkboxgroup' => 'start', 'default' => 'yes', 'autoload' => false, ), array( 'type' => 'sectionend', 'id' => 'marketplace_suggestions', ), ); return apply_filters( 'woocommerce_com_integration_settings', $settings ); } /** * Get settings for the legacy API section. * * @return array */ protected function get_settings_for_legacy_api_section() { $legacy_api_setting_desc = 'yes' === get_option( 'woocommerce_api_enabled' ) ? __( 'The legacy REST API is enabled', 'woocommerce' ) : __( 'The legacy REST API is NOT enabled', 'woocommerce' ); $legacy_api_setting_tip = WC()->legacy_rest_api_is_available() ? __( 'ℹ️️ The WooCommerce Legacy REST API extension is installed and active.', 'woocommerce' ) : sprintf( /* translators: placeholders are URLs */ __( '⚠️ The WooCommerce Legacy REST API has been moved to a dedicated extension. Learn more about this change', 'woocommerce' ), 'https://wordpress.org/plugins/woocommerce-legacy-rest-api/', 'https://developer.woocommerce.com/2023/10/03/the-legacy-rest-api-will-move-to-a-dedicated-extension-in-woocommerce-9-0/' ); $settings = array( array( 'title' => '', 'type' => 'title', 'desc' => '', 'id' => 'legacy_api_options', ), array( 'title' => __( 'Legacy API', 'woocommerce' ), 'desc' => $legacy_api_setting_desc, 'id' => 'woocommerce_api_enabled', 'type' => 'checkbox', 'default' => 'no', 'disabled' => true, 'desc_tip' => $legacy_api_setting_tip, ), array( 'type' => 'sectionend', 'id' => 'legacy_api_options', ), ); return apply_filters( 'woocommerce_settings_rest_api', $settings ); } /** * Form method. * * @deprecated 3.4.4 * * @param string $method Method name. * * @return string */ public function form_method( $method ) { return 'post'; } /** * Notices. */ private function notices() { // phpcs:disable WordPress.Security.NonceVerification.Recommended if ( isset( $_GET['section'] ) && 'webhooks' === $_GET['section'] ) { WC_Admin_Webhooks::notices(); } if ( isset( $_GET['section'] ) && 'keys' === $_GET['section'] ) { WC_Admin_API_Keys::notices(); } // phpcs:enable } /** * Output the settings. */ public function output() { global $current_section; if ( 'webhooks' === $current_section ) { WC_Admin_Webhooks::page_output(); } elseif ( 'keys' === $current_section ) { WC_Admin_API_Keys::page_output(); } else { parent::output(); } } /** * Save settings. */ public function save() { // phpcs:disable WordPress.Security.NonceVerification.Missing global $current_section; if ( apply_filters( 'woocommerce_rest_api_valid_to_save', ! in_array( $current_section, array( 'keys', 'webhooks' ), true ) ) ) { // Prevent the T&Cs and checkout page from being set to the same page. if ( isset( $_POST['woocommerce_terms_page_id'], $_POST['woocommerce_checkout_page_id'] ) && $_POST['woocommerce_terms_page_id'] === $_POST['woocommerce_checkout_page_id'] ) { $_POST['woocommerce_terms_page_id'] = ''; } // Prevent the Cart, checkout and my account page from being set to the same page. if ( isset( $_POST['woocommerce_cart_page_id'], $_POST['woocommerce_checkout_page_id'], $_POST['woocommerce_myaccount_page_id'] ) ) { if ( $_POST['woocommerce_cart_page_id'] === $_POST['woocommerce_checkout_page_id'] ) { $_POST['woocommerce_checkout_page_id'] = ''; } if ( $_POST['woocommerce_cart_page_id'] === $_POST['woocommerce_myaccount_page_id'] ) { $_POST['woocommerce_myaccount_page_id'] = ''; } if ( $_POST['woocommerce_checkout_page_id'] === $_POST['woocommerce_myaccount_page_id'] ) { $_POST['woocommerce_myaccount_page_id'] = ''; } } $this->save_settings_for_current_section(); $this->do_update_options_action(); } // phpcs:enable } } // phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound, Generic.Commenting.Todo.CommentFound /** * WC_Settings_Rest_API class. * * @deprecated 3.4 in favour of WC_Settings_Advanced. */ class WC_Settings_Rest_API extends WC_Settings_Advanced { } return new WC_Settings_Advanced(); // phpcs:enable {"id":516,"count":1,"description":"","link":"https:\/\/sanat-marketing.ir\/product-tag\/%d8%a7%d8%b1%d8%af%d9%88-5-%d9%be%d8%a7%d8%b1%da%86%d9%87-%d8%a7%d9%88%da%a9-%da%a9%d8%af-2037\/","name":"\u0627\u0631\u062f\u0648 5 \u067e\u0627\u0631\u0686\u0647 \u0627\u0648\u06a9 \u06a9\u062f 2037","slug":"%d8%a7%d8%b1%d8%af%d9%88-5-%d9%be%d8%a7%d8%b1%da%86%d9%87-%d8%a7%d9%88%da%a9-%da%a9%d8%af-2037","taxonomy":"product_tag","meta":[],"yoast_head":"\n