• Resolved fouldsy99

    (@fouldsy99)


    I saw the comment was closed on another thread so I started a new one.

    Authors are able to change this themselves? from Yes/No

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Calin Vingan

    (@calinvingan)

    Hi @fouldsy99,

    Yes, you can switch off the Author Box from the User > Edit Profile.

    • This reply was modified 4 years, 10 months ago by Calin Vingan.
    Thread Starter fouldsy99

    (@fouldsy99)

    Yes, but the problem is is that author can then login to his profile and change it back

    Plugin Contributor Calin Vingan

    (@calinvingan)

    Yes, this is right. We don’t have a way to remove this option from the user profile.

    Thread Starter fouldsy99

    (@fouldsy99)

    How show for only certain user groups?

    Plugin Contributor Calin Vingan

    (@calinvingan)

    I don’t know if you can do this with the Starbox plugin.

    You can do this with a hook like this:

    add_action('template_redirect',function($content){
        global $post;
    
        if(isset($post->post_author) && class_exists('ABH_Classes_Tools')){
            if(in_array($post->post_author,array(1,2,3,4))){
                ABH_Classes_Tools::$options = array();
            }
        }
    
    },PHP_INT_MAX);

    where 1,2,3,4 are the author IDs

    Thread Starter fouldsy99

    (@fouldsy99)

    That would be too many IDs

    If possible to set by user group or capability would be better

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Hide box for certain authors?’ is closed to new replies.