Forum Replies Created

Viewing 4 Topics - 1 through 4 (of 4 total)
Author Posts
Alex Alex

Damien, thanks for the suggestion…. I will give it a try but the truth is that the plugging should handle this as is a function on the plugging, what I did in the mean time was deleting the code in the plugging that control the access to back end, but I guess your solution is better…

December 12, 2013 at 10:11 pm in reply to: my admin back is blocked 13663
Alex Alex

hi, I got access to back end by deleting this code below, otherwise I can not logging.. but this is not how it should be and im afraid that other user can get to the back end

—————-

/**
* Block user access to admin panel for specific roles
*
* @global string $pagenow
*/
function block_admin_access() {
global $pagenow;

// bail out if we are from WP Cli
if ( defined( ‘WP_CLI’ ) ) {
return;
}

$access_level = wpuf_get_option( ‘admin_access’, ‘wpuf_general’, ‘read’ );
$valid_pages = array(‘admin-ajax.php’, ‘async-upload.php’, ‘media-upload.php’);

if ( !current_user_can( $access_level ) && !in_array( $pagenow, $valid_pages ) ) {
wp_die( __( ‘Access Denied. Your site administrator has blocked your access to the WordPress back-office.’, ‘wpuf’ ) );
}
}
———————

December 12, 2013 at 10:09 am in reply to: Accessing custom fields from ACF 13652
Alex Alex This reply has been marked as private.
Alex Alex

hi I have same issue did you get to fix it? if so how…? please advice since Im un able to use it

Viewing 4 Topics - 1 through 4 (of 4 total)