id, array( $this, 'get_settings' ), PHP_INT_MAX ); } /** * settings_section. * * @version 1.0.0 * @since 1.0.0 */ function settings_section( $sections ) { $sections[ $this->id ] = $this->desc; return $sections; } /** * get_settings. * * @version 1.0.0 * @since 1.0.0 */ function get_settings() { return array_merge( $this->get_section_settings(), array( array( 'title' => __( 'Reset Section Settings', 'admin-bar-addition-for-woocommerce' ), 'type' => 'title', 'id' => 'alg_wc_admin_bar_addition' . '_' . $this->id . '_reset_options', ), array( 'title' => __( 'Reset Settings', 'admin-bar-addition-for-woocommerce' ), 'desc' => '' . __( 'Reset', 'admin-bar-addition-for-woocommerce' ) . '', 'id' => 'alg_wc_admin_bar_addition' . '_' . $this->id . '_reset', 'default' => 'no', 'type' => 'checkbox', ), array( 'type' => 'sectionend', 'id' => 'alg_wc_admin_bar_addition' . '_' . $this->id . '_reset_options', ), ) ); } } endif;