WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_settings_pages хук-фильтр . WC 1.0

Использование

add_filter( 'woocommerce_settings_pages', 'filter_function_name_4789' );
function filter_function_name_4789( $array ){
	// filter...

	return $array;
}
$array
-

Где вызывается хук

WC_Settings_Advanced::get_settings()
woocommerce_settings_pages
woocommerce/includes/admin/settings/class-wc-settings-advanced.php 61-323
$settings = apply_filters(
	'woocommerce_settings_pages',
	array(

		array(
			'title' => __( 'Page setup', 'woocommerce' ),
			'desc'  => __( 'These pages need to be set so that WooCommerce knows where to send users to checkout.', 'woocommerce' ),
			'type'  => 'title',
			'id'    => 'advanced_page_options',
		),

		array(
			'title'    => __( 'Cart page', 'woocommerce' ),
			/* Translators: %s Page contents. */
			'desc'     => sprintf( __( 'Page contents: [%s]', 'woocommerce' ), apply_filters( 'woocommerce_cart_shortcode_tag', 'woocommerce_cart' ) ),
			'id'       => 'woocommerce_cart_page_id',
			'type'     => 'single_select_page_with_search',
			'default'  => '',
			'class'    => 'wc-page-search',
			'css'      => 'min-width:300px;',
			'args'     => array(
				'exclude' =>
					array(
						wc_get_page_id( 'checkout' ),
						wc_get_page_id( 'myaccount' ),
					),
			),
			'desc_tip' => true,
			'autoload' => false,
		),

		array(
			'title'    => __( 'Checkout page', 'woocommerce' ),
			/* Translators: %s Page contents. */
			'desc'     => sprintf( __( 'Page contents: [%s]', 'woocommerce' ), apply_filters( 'woocommerce_checkout_shortcode_tag', 'woocommerce_checkout' ) ),
			'id'       => 'woocommerce_checkout_page_id',
			'type'     => 'single_select_page_with_search',
			'default'  => wc_get_page_id( 'checkout' ),
			'class'    => 'wc-page-search',
			'css'      => 'min-width:300px;',
			'args'     => array(
				'exclude' =>
					array(
						wc_get_page_id( 'cart' ),
						wc_get_page_id( 'myaccount' ),
					),
			),
			'desc_tip' => true,
			'autoload' => false,
		),

		array(
			'title'    => __( 'My account page', 'woocommerce' ),
			/* Translators: %s Page contents. */
			'desc'     => sprintf( __( 'Page contents: [%s]', 'woocommerce' ), apply_filters( 'woocommerce_my_account_shortcode_tag', 'woocommerce_my_account' ) ),
			'id'       => 'woocommerce_myaccount_page_id',
			'type'     => 'single_select_page_with_search',
			'default'  => '',
			'class'    => 'wc-page-search',
			'css'      => 'min-width:300px;',
			'args'     => array(
				'exclude' =>
					array(
						wc_get_page_id( 'cart' ),
						wc_get_page_id( 'checkout' ),
					),
			),
			'desc_tip' => true,
			'autoload' => false,
		),

		array(
			'title'    => __( 'Terms and conditions', 'woocommerce' ),
			'desc'     => __( 'If you define a "Terms" page the customer will be asked if they accept them when checking out.', 'woocommerce' ),
			'id'       => 'woocommerce_terms_page_id',
			'default'  => '',
			'class'    => 'wc-page-search',
			'css'      => 'min-width:300px;',
			'type'     => 'single_select_page_with_search',
			'args'     => array( 'exclude' => wc_get_page_id( 'checkout' ) ),
			'desc_tip' => true,
			'autoload' => false,
		),

		array(
			'type' => 'sectionend',
			'id'   => 'advanced_page_options',
		),

		array(
			'title' => '',
			'type'  => 'title',
			'id'    => 'checkout_process_options',
		),

		'force_ssl_checkout'   => array(
			'title'           => __( 'Secure checkout', 'woocommerce' ),
			'desc'            => __( 'Force secure checkout', 'woocommerce' ),
			'id'              => 'woocommerce_force_ssl_checkout',
			'default'         => 'no',
			'type'            => 'checkbox',
			'checkboxgroup'   => 'start',
			'show_if_checked' => 'option',
			/* Translators: %s Docs URL. */
			'desc_tip'        => sprintf( __( 'Force SSL (HTTPS) on the checkout pages (<a href="%s" target="_blank">an SSL Certificate is required</a>).', 'woocommerce' ), 'https://docs.woocommerce.com/document/ssl-and-https/#section-3' ),
		),

		'unforce_ssl_checkout' => array(
			'desc'            => __( 'Force HTTP when leaving the checkout', 'woocommerce' ),
			'id'              => 'woocommerce_unforce_ssl_checkout',
			'default'         => 'no',
			'type'            => 'checkbox',
			'checkboxgroup'   => 'end',
			'show_if_checked' => 'yes',
		),

		array(
			'type' => 'sectionend',
			'id'   => 'checkout_process_options',
		),

		array(
			'title' => __( 'Checkout endpoints', 'woocommerce' ),
			'type'  => 'title',
			'desc'  => __( 'Endpoints are appended to your page URLs to handle specific actions during the checkout process. They should be unique.', 'woocommerce' ),
			'id'    => 'checkout_endpoint_options',
		),

		array(
			'title'    => __( 'Pay', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the "Checkout &rarr; Pay" page.', 'woocommerce' ),
			'id'       => 'woocommerce_checkout_pay_endpoint',
			'type'     => 'text',
			'default'  => 'order-pay',
			'desc_tip' => true,
		),

		array(
			'title'    => __( 'Order received', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the "Checkout &rarr; Order received" page.', 'woocommerce' ),
			'id'       => 'woocommerce_checkout_order_received_endpoint',
			'type'     => 'text',
			'default'  => 'order-received',
			'desc_tip' => true,
		),

		array(
			'title'    => __( 'Add payment method', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the "Checkout &rarr; Add payment method" page.', 'woocommerce' ),
			'id'       => 'woocommerce_myaccount_add_payment_method_endpoint',
			'type'     => 'text',
			'default'  => 'add-payment-method',
			'desc_tip' => true,
		),

		array(
			'title'    => __( 'Delete payment method', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the delete payment method page.', 'woocommerce' ),
			'id'       => 'woocommerce_myaccount_delete_payment_method_endpoint',
			'type'     => 'text',
			'default'  => 'delete-payment-method',
			'desc_tip' => true,
		),

		array(
			'title'    => __( 'Set default payment method', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the setting a default payment method page.', 'woocommerce' ),
			'id'       => 'woocommerce_myaccount_set_default_payment_method_endpoint',
			'type'     => 'text',
			'default'  => 'set-default-payment-method',
			'desc_tip' => true,
		),

		array(
			'type' => 'sectionend',
			'id'   => 'checkout_endpoint_options',
		),

		array(
			'title' => __( 'Account endpoints', 'woocommerce' ),
			'type'  => 'title',
			'desc'  => __( 'Endpoints are appended to your page URLs to handle specific actions on the accounts pages. They should be unique and can be left blank to disable the endpoint.', 'woocommerce' ),
			'id'    => 'account_endpoint_options',
		),

		array(
			'title'    => __( 'Orders', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the "My account &rarr; Orders" page.', 'woocommerce' ),
			'id'       => 'woocommerce_myaccount_orders_endpoint',
			'type'     => 'text',
			'default'  => 'orders',
			'desc_tip' => true,
		),

		array(
			'title'    => __( 'View order', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the "My account &rarr; View order" page.', 'woocommerce' ),
			'id'       => 'woocommerce_myaccount_view_order_endpoint',
			'type'     => 'text',
			'default'  => 'view-order',
			'desc_tip' => true,
		),

		array(
			'title'    => __( 'Downloads', 'woocommerce' ),
			'desc'     => __( 'Endpoint for the "My account &rarr; 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 &rarr; 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 &rarr; 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 &rarr; 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 &rarr; 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',
		),
	)
);

Где используется хук в ядре WooCommerce

Использование не найдено.