/** * Create post function * * @return void */ public function moove_create_post() { $args = array('key' => sanitize_text_field(esc_sql($_POST['key'])), 'value' => wp_unslash($_POST['value']), 'form_data' => esc_sql(wp_unslash($_POST['form_data']))); $move_create_post = new Moove_Importer_Controller(); $create_post = $move_create_post->moove_create_post($args); echo $create_post; die; }