WC_Settings_Point_Of_Sale::add_settings_pagepublicWC 1.0

Add Point of Sale page to settings if the feature is enabled.

Method of the class: WC_Settings_Point_Of_Sale{}

No Hooks.

Returns

Array|Mixed.

Usage

$WC_Settings_Point_Of_Sale = new WC_Settings_Point_Of_Sale();
$WC_Settings_Point_Of_Sale->add_settings_page( $pages );
$pages(array) (required)
Existing pages.

WC_Settings_Point_Of_Sale::add_settings_page() code WC 10.3.3

public function add_settings_page( $pages ) {
	if ( FeaturesUtil::feature_is_enabled( 'point_of_sale' ) ) {
		return parent::add_settings_page( $pages );
	} else {
		return $pages;
	}
}