Skip to content

Commit

Permalink
Disable call to ajax unused
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldomatias committed Jul 23, 2023
1 parent 61d9aad commit 084d43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-open-whatsapp-chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function owc_css() {
*/
public function owc_js() {
wp_enqueue_script( 'owc-js', plugins_url( '/assets/js/owc-main.js', OWC_FILE ), array( 'jquery' ) );
wp_localize_script( 'owc-js', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
// wp_localize_script( 'owc-js', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
}

/**
Expand Down

0 comments on commit 084d43f

Please sign in to comment.