function remove_action_wpml_whip() { global $wpml_whip_requirements; if ( $wpml_whip_requirements instanceof WPML_Whip_Requirements ) { remove_action( 'plugins_loaded', array( $wpml_whip_requirements, 'load_whip' ) ); } } add_action( 'plugins_loaded', 'remove_action_wpml_whip', 9, 0 );