• Resolved Justin Herz

    (@syabah471)


    I want to share how to utilize “Your Own Options” just in case anyone feels confuse about this really useful feature of Adminimize. Exactly just like me when I first use Adminimize.

    I’m using a theme with feature to self-host a video. This provides many custom fields which works fine even with the default settings. So, I hide those (a bunch) fields using Adminimize.

    Below the items I enter to the text-area below “Write options – Post”

    Your own options Option name (LEFT SIDE)
    =========
    Video Embedded Code
    Video Duration
    Video Download URL
    Video Download Button
    External URL
    Has Single Page
    Video Header
    Use JWplayer Settings

    Selector, ID or class (RIGHT SIDE)
    ==========
    #tm_video_code
    #video_duration
    #video_download_url
    #video_download_button
    #external_url
    #has_single_page
    #video_player
    #use_jwplayer_settings

    Thanks, Adminimize. Now my Admin area is clean and easy to work with ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Bueltge

    (@bueltge)

    Thanks a lot. A added your thread to the public wiki page https://github.com/bueltge/adminimize/wiki

    innkeeperea

    (@innkeeperea)

    If I wanted to limit editor to just editing their specific page/ calendar What kind of code to you suggest. Each has their own login.

    Plugin Author Frank Bueltge

    (@bueltge)

    I mean a custom plugin like this.

    function fb_posts_for_current_author($query) {
        global $pagenow;
     
        if ( 'edit.php' !== $pagenow || ! $query->is_admin )
            return $query;
     
        if ( ! current_user_can( 'edit_others_posts' ) ) {
            global $user_ID;
            $query->set( 'author', $user_ID );
        }
        return $query;
    }
    add_filter( 'pre_get_posts', 'fb_posts_for_current_author' );

    I am not a programmer at all. Where would something like this go?

    I am not a programmer at all. Where would something like this go?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add YOUR OWN OPTIONS example’ is closed to new replies.