plugin install

This commit is contained in:
Tony Volpe
2024-06-18 17:29:05 -04:00
parent e1aaedd1ae
commit 41f50eacc4
5880 changed files with 1057631 additions and 39681 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace Gravity_Forms\Gravity_Forms\Editor_Button\Endpoints;
use Gravity_Forms\Gravity_Forms\Config\GF_Config;
/**
* AJAX Endpoint for saving the compact view settings.
*
* @since 2.8
*
* @package Gravity_Forms\Gravity_Forms\Editor_Button\Endpoints
*/
class GF_Editor_Save_Editor_Settings {
// Strings
const ACTION_NAME = 'gf_save_editor_settings';
/**
* Handle the AJAX request.
*
* @since 2.8
*
* @return void
*/
public function handle() {
check_ajax_referer( self::ACTION_NAME );
$form = intval( rgpost( 'form' ) );
$user = get_current_user_id();
$name = rgpost( 'name' );
$value = rgpost( 'value' );
$value = ( $value == 'enable' ) ? 'enable' : 'disable';
update_user_meta( $user, 'gform_' . $name . '_' . $form, $value );
}
}