self::class, 'function' => 'route', 'icon' => 'frmfont frm_square_icon', ); return $sections; } /** * Handle global settings routing. * * @return void */ public static function route() { self::global_settings_form(); } /** * Print the Stripe section for Global settings. * * @param array $atts * * @return void */ public static function global_settings_form( $atts = array() ) { include FrmSquareLiteAppHelper::plugin_path() . '/views/settings/form.php'; } /** * Handle processing changes to global Stripe Settings. * * @return void */ public static function process_form() { $settings = FrmSquareLiteAppHelper::get_settings(); // phpcs:ignore WordPress.Security.NonceVerification.Missing $settings->update( wp_unslash( $_POST ) ); $settings->store(); } }