Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hey there,

    If you need resources in the head only when users are logged in, but they can remain in the footer when users are not logged in, then you could use the stf_include filter. Something like this in your functions.php file should work:

    function stf_turn_off_for_users( $include ) {
        if( is_user_logged_in() ) {
            $include = false;
        }
        return $include;
    }
    add_filter( 'stf_include', 'stf_turn_off_for_users' );
    Thread Starter houseofstrauss

    (@houseofstrauss)

    GREAT, very useful, thanks for your reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Option to turn OFF for admins logged in please?’ is closed to new replies.