My Dashboard Widget

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 8 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #158960

    EH
    Expired Member
    Post count: 96

    Sorry I have another question. I would like the my dashboard widget to appear for logged in users only. Where would I find this code so I can wrap it in a conditional?

    #159025

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    best would be to use widget logic https://wordpress.org/plugins/widget-logic/.

    Otherwise you would ahve to hack core files (bad idea) or copy the widget code in your child theme functions.php, rename it (class, function, constructor) to have a second copy of the widget with your conditional tag in it.

    Widget logic would be my choice.

    Let us know if that works for you too.

    Thanks

    #159330

    EH
    Expired Member
    Post count: 96

    Widget logic worked perfectly. Thank you.

    #159636

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket