WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Annoying Donate Button on edit pages

[Resolved] Annoying Donate Button on edit pages

  • 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/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marcel Brinkkemper

    @macbrink

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

    Plugin Author Marcel Brinkkemper

    @macbrink

    It is an action for 'post_submitbox_misc_actions'

    Plugin Author klihelp

    @klihelp

    Thanks, Opt-in action would be better.

    Plugin Author Marcel Brinkkemper

    @macbrink

    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.

    Plugin Author klihelp

    @klihelp

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

    Plugin Author Marcel Brinkkemper

    @macbrink

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

    Plugin Author klihelp

    @klihelp

    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  );
    Plugin Author Marcel Brinkkemper

    @macbrink

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Annoying Donate Button on edit pages’ is closed to new replies.