remove_action From PHP Class in WooCommerce Memberships
问题 I have previously used a solution described here: remove_action From PHP Class for removing an action in the WooCommerce membership plugin. However, the solution no longer works, as WooComemerce have changed the code behind the membership plugin. So this is the new code. Main woocommerce-memberships.php public function includes() { // load post types require_once( $this->get_plugin_path() . '/includes/class-wc-memberships-post-types.php' ); // load user messages helper require_once( $this-