_wc_options ) ) { $wc_exclude_types = array( 'title', 'sectionend', ); $this->_wc_options = array(); foreach ( $settings as $setting ) { foreach ( $setting->get_settings() as $option ) { if ( isset( $option['id'] ) && ( ! isset( $option['type'] ) || ! in_array( $option['type'], $wc_exclude_types ) ) ) $this->_wc_options[] = $option['id']; } } } return $settings; } public function wc_aal_whitelist_options( $whitelist_options ) { if ( ! empty( $this->_wc_options ) ) { $whitelist_options = array_unique( array_merge( $whitelist_options, $this->_wc_options ) ); } return $whitelist_options; } public function __construct() { add_action( 'init', array( &$this, 'init' ) ); } } new AAL_Integration_WooCommerce();