golden hour
/home/godaofbq/dev.hyperredbed.com/wp-content/plugins/shopengine/core/settings
⬆️ Go Up
Upload
File/Folder
Size
Actions
action.php
1.6 KB
Del
OK
api.php
4.6 KB
Del
OK
base.php
7.22 KB
Del
OK
plugin-status.php
4.06 KB
Del
OK
screens
-
Del
OK
Edit: action.php
<?php namespace ShopEngine\Core\Settings; defined('ABSPATH') || exit; use ShopEngine\Core\Onboard\Onboard; use ShopEngine\Core\Register\Module_List; use ShopEngine\Core\Register\Widget_List; use ShopEngine\Traits\Singleton; /** * Action Class. * for post insert, update and get data. * * @since 1.0.0 */ class Action { use Singleton; private $response = []; /** * Public function __construct. * call function for all * * @since 1.0.0 */ public function __construct() { $this->response = [ 'saved' => false, 'status' => esc_html__("Something went wrong.", 'shopengine'), 'data' => [], ]; } /** * Public function store. * store data for post * * @since 1.0.0 */ public function get_fields() { $data = [ 'widgets' => [], 'modules' => [], 'userdata' => [], 'on_board' => [ 'status' => get_option(Onboard::STATUS), 'old_user' => get_option('shopengine_db_settings') ? true : false, ], 'languages' => apply_filters('shopengine_multi_language', ['status' => false, 'lang_items' => []]), 'dataSetting' => "Basic" ]; $data['widgets'] = Widget_List::instance()->get_list(true, 'unfiltered'); $data['modules'] = Module_List::instance()->get_list(true, 'unfiltered'); return $data; } /** * Public function store. * store data for post * * @since 1.0.0 */ public function get_data() { $data = [ 'widgets' => [], 'modules' => [], 'userdata' => [] ]; $data['widgets'] = Widget_List::instance()->get_list(); $data['modules'] = Module_List::instance()->get_list(); return $data; } }
Save