WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] change menu icon for achievements in dashboard (7 posts)

  1. Vernon Fowler
    Member
    Posted 1 year ago #

    If it were my own plugin, I'd probably add something like the following.

    'menu_icon' => plugins_url( 'images/image.png', __FILE__ ),

    What is the way to add a menu icon to the custom post menu for achievements via functions.php ?

    Thanks in advance.

    Cheers,
    Vernon

    http://wordpress.org/extend/plugins/achievements/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    If I had an icon, I'd use it. Create a ticket on github for me to add a filter for that line, and then that should help you add a custom one :)

  3. Vernon Fowler
    Member
    Posted 1 year ago #

    Rather than a new ticket, it seemed to fit in nicely with the Create/add dashboard icon from a while back. Thanks for your prompt reply. Once again, brilliant work Paul.

  4. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    No problem: thanks!

  5. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    Took a look. I think you should just be able to use the "dpa_register_post_type_achievement" filter and add the 'menu_icon' param to it.

  6. Vernon Fowler
    Member
    Posted 1 year ago #

    I'm following http://codex.wordpress.org/Function_Reference/add_filter but no luck so far - probably more my poor coding skills rather than anything else. Will try again when I've got more time.

  7. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic