WordPress.org

Ready to get started?Download WordPress

Forums

Eazyest Gallery
[resolved] Annoying Donate Button on edit pages (9 posts)

  1. klihelp
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    This is a great plugin. Thank you for that.
    You have a donate button on the Settings page, however the Donate button is very annoying on the Edit pages.
    There is no way to see for end users to whom that Donate button belongs to, they may think that the Site Admins want some money from them.
    It's makes difficult to maintain the consistency with other admin Edit pages. Please remove the Donate button from the Edit pages. Otherwise the admins have to to modify the core files to take remove it.

    http://wordpress.org/extend/plugins/eazyest-gallery/

  2. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    The buttton is inserted in an action. You should be able to remove this action. I'll check.

  3. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    It is an action for 'post_submitbox_misc_actions'

  4. klihelp
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, Opt-in action would be better.

  5. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    The reason why I have placed the button here is that I really would like some donations. Users normally only visit the Settings page once.
    Lazyest Gallery has a donate button on the Settings page. For more than 200.000 downloads, I am happy to get a total of 14 donations.

  6. klihelp
    Member
    Plugin Author

    Posted 1 year ago #

    I couldn't make it work:(
    Can you post a code to see how to use this action?

  7. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    remove_action( 'post_submitbox_misc_actions', 'ezg_donate', 9 );

  8. klihelp
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks. In theme fuctions.php I needed to call remove_action after an add_action .. This is how it's worked:

    // Remove Donate button
    function kli_ezg_donate_remove() {
     remove_action( 'post_submitbox_misc_actions', 'ezg_donate', 9 );
    }
    add_action( 'post_submitbox_misc_actions',  'kli_ezg_donate_remove', 1  );
  9. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah, it is sometimes hard to find out when to fire the actions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic