소스 검색

修复ajax 需要登陆

chengwl 5 년 전
부모
커밋
a52a8cb138
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Admin/Ajax.php

+ 1 - 1
wp-content/plugins/coupon-creator/plugin-engine/src/Pngx/Admin/Ajax.php

@@ -25,7 +25,7 @@ class Pngx__Admin__Ajax {
 		add_action( 'wp_ajax_pngx_variety',  array( $this, 'load_variety' ) );
 
 		add_action( 'wp_ajax_pngx_repeatable',  array( $this, 'load_repeatable' ) );
-		add_action( 'wp_ajax_coupon_info',  array( $this, 'coupon_info' ) );
+		add_action( 'wp_ajax_nopriv_coupon_info',  array( $this, 'coupon_info' ) );
 
 	}