• cmsdevelopers

    (@cmsdevelopers)


    Hello,

    I’m working on creating a custom admin dashboard using a control panel theme I found on ThemeForest. I am creating a plugin that changes styling elements and for the most part have all edits I want to make, with the exception of one thing.

    ***Problem***
    Similar to creating custom template pages for a theme, I have defined custom templates to handle certain pages inside wp-admin ( ex. wp-admin/plugins.php ).

    I need to get the “Work Area” of admin “Only” – I’ve tried using a simple include:

    <?
    $site = get_bloginfo('home');
    include($site.'/wp-admin/plugins.php'); ?>

    And although works, returns ( You don’t have sufficient permissions ) error. The reason is because I’ve been forced to create the “admin theme” as a custom template page that has access to “admin elements” so the user is not under the wp-admin url.

    This works:
    https://screencast.com/t/9SdvjVKPt

    As show above, this is how I want to display the work area – in the screenshot above, I’m simply using an iframe and have applied visibility:hidden to sidebar, header and footer elements

    ***My Question***
    How can I override the permissions error when using include – or what will be a better option for achieving my goals.

    Thanks,

  • The topic ‘Advanced WP-Admin Theme’ is closed to new replies.