Home Forums Plugin Support WP User Frontend Pro my admin back is blocked

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Alex 5 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #13641

    Post count: 4

    I just got the plugging and install but I got blocked from accessing my back end how i can fix it, when I used the free version happen the same, please help


    Post count: 1555

    are you pointing to admin user? or subscribe users? There is a settings option under WPUF Settings-> Admin area access


    Post count: 4

    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' ) ) {

    $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' ) );

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘my admin back is blocked’ is closed to new replies.