{status}_{post_type} does not run correctly?

WooCommerce has its own hooks for things like this. You shouldn’t rely on the underlying WordPress post-related hooks and functions when dealing with products and orders. WooCommerce is moving towards using custom database tables for products and orders instead of custom post types and while there’ll be hooks etc. added for backwards compatibility, you’ll be … Read more

Remove action from plugin

You could try: add_action( ‘plugins_loaded’, function() { global $basic_user_avatars; remove_action( ‘edit_user_profile’, array( &$basic_user_avatars, ‘edit_user_profile’ ) ); }); You need to make sure this is done after the other plugin has been initialized, therefore the plugins_loaded action.

Trigger action via button

Remove this line add_action( ‘wp_ajax_my_action’, ‘updateContent’ ); Add this two Line add_action( ‘wp_ajax_nopriv_updateContent’, ‘updateContent’ ); add_action( ‘wp_ajax_updateContent’, ‘updateContent’ ); hopefully it will solve your issue https://codex.wordpress.org/Plugin_API/Action_Reference/wp_ajax_nopriv_(action)