From 4b154dd6504efe03f45f3074aee683138bb10b1d Mon Sep 17 00:00:00 2001 From: nikitasinelnikov Date: Mon, 18 Feb 2019 16:29:49 +0200 Subject: [PATCH] - ajax custom selectbox options for not logged in users; --- includes/core/class-ajax-common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/core/class-ajax-common.php b/includes/core/class-ajax-common.php index 5d70291d..9fd939cb 100644 --- a/includes/core/class-ajax-common.php +++ b/includes/core/class-ajax-common.php @@ -32,6 +32,7 @@ if ( ! class_exists( 'um\core\AJAX_Common' ) ) { } add_action( 'wp_ajax_um_select_options', array( UM()->form(), 'ajax_select_options' ) ); + add_action( 'wp_ajax_nopriv_um_select_options', array( UM()->form(), 'ajax_select_options' ) ); add_action( 'wp_ajax_um_delete_profile_photo', array( UM()->profile(), 'ajax_delete_profile_photo' ) ); add_action( 'wp_ajax_um_delete_cover_photo', array( UM()->profile(), 'ajax_delete_cover_photo' ) );