Forum Replies Created
-
AuthorPosts
-
June 1, 2018 at 12:29 pm in reply to: Calendar view AJAX switching between months does not work #1544243
tshapiro
ParticipantI found the PHP code that was causing the issue:
`function cfabw_dashboard_redirect() {
// bail early if user can access WP admin section
if( cfabw_user_level_is(‘administrator’) || cfabw_user_level_is(‘country_admin’) ) {
return;
}global $pagenow;
if( ‘profile.php’ != $pagenow ) {
$dashboard_page_id = cfabw_get_page_id_by_template(‘admin-template-dashboard.php’);
wp_redirect( get_page_link($dashboard_page_id) );
exit;
}
}
add_action( ‘admin_init’, ‘cfabw_dashboard_redirect’);’The code is meant to redirect users who are not administrators to a custom dashboard created for the site. We don’t want users who are not admins to be able to access the default WordPress dashboard…
Do you have any idea why this code was breaking the AJAX function? I would really appreciate it if you could help me figure out what I’m doing wrong here.
June 1, 2018 at 11:37 am in reply to: Calendar view AJAX switching between months does not work #1544185tshapiro
ParticipantAlso, I want to stress that this functionality was working when I started using the plugin and stopped working after an update so I think it’s definitely something to do with your code (and my code) not playing well.
June 1, 2018 at 11:33 am in reply to: Calendar view AJAX switching between months does not work #1544181tshapiro
ParticipantI bought a pro license just to get your help debugging so I feel very disappointed by your lack of help.
June 1, 2018 at 9:21 am in reply to: Calendar view AJAX switching between months does not work #1543914tshapiro
ParticipantThis reply is private.
-
AuthorPosts
