Last active
June 21, 2017 11:28
-
-
Save bhavik-kiri/1c70580754e3c5548ecf3952c92c3198 to your computer and use it in GitHub Desktop.
It will add the ajax action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function load_ajax() { | |
if ( !is_user_logged_in() ){ | |
add_action( 'wp_ajax_nopriv_update_order_review', 'update_order_review' ); | |
} else{ | |
add_action( 'wp_ajax_update_order_review', 'update_order_review' ); | |
} | |
} | |
add_action( 'init', 'load_ajax' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment