klihelp
Member
Posted 2 months 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/
The buttton is inserted in an action. You should be able to remove this action. I'll check.
It is an action for 'post_submitbox_misc_actions'
klihelp
Member
Posted 2 months ago #
Thanks, Opt-in action would be better.
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.
klihelp
Member
Posted 1 month ago #
I couldn't make it work:(
Can you post a code to see how to use this action?
remove_action( 'post_submitbox_misc_actions', 'ezg_donate', 9 );
klihelp
Member
Posted 1 month 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 );
Yeah, it is sometimes hard to find out when to fire the actions.