- forget old ajax wp, now use fetch wp
- trying js files without imports
This commit is contained in:
@@ -20,7 +20,7 @@ if (!defined('ABSPATH')) {
|
||||
/**
|
||||
* plugin dir root
|
||||
*/
|
||||
include_once( plugin_dir_path(__FILE__) . '/utils/plugin_tools.php');
|
||||
include_once( plugin_dir_path(__FILE__) . '/utils/plgntls_class.php');
|
||||
PLGNTLS_class::set_root_dir( plugin_dir_path(__FILE__), plugin_dir_url(__FILE__) );
|
||||
|
||||
/**
|
||||
@@ -369,7 +369,7 @@ function fipfcard_ajax_handler()
|
||||
wp_send_json_success( array
|
||||
(
|
||||
'It works',
|
||||
"data_received" => $_POST['postid'],
|
||||
"data_received" => $_POST,
|
||||
),
|
||||
200
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user