Custom Team Manager conflict with WooCommerce endpoints
-
Hi ??
I tried to comment out parts of code in your plugin and I find out that this part (bellow) breaks WooCo permalinks after CTM plugin activacion.
function cmt_team_manager() { $labels = array( 'name' => __( 'Management Team', 'cmt-management-team' ), 'singular_name' => __( 'Management Team', 'cmt-management-team' ), 'add_new' => __( 'Add New Member', 'member' ), 'add_new_item' => __( 'Add New Member' ), 'edit_item' => __( 'Edit Member' ), 'new_item' => __( 'New Member' ), 'all_items' => __( 'All Members' ), 'view_item' => __( 'View Member' ), 'search_items' => __( 'Search Members' ), 'not_found' => __( 'No Member found' ), 'not_found_in_trash' => __( 'No Member found in the Trash' ), 'parent_item_colon' => __( '' ), 'menu_name' => __( 'Management Team' ) ); $profile_slug = get_option('cmt_mem_pro_page_slug'); $args = array( 'labels' => $labels, 'description' => 'Team Members Add', 'public' => true, 'rewrite' => array( 'slug' => $profile_slug ), 'menu_position' => null, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt' ), 'has_archive' => true ); register_post_type( 'cmt-management-team', $args ); register_taxonomy( "cmt-team-category", "cmt-management-team", array( "hierarchical" => true, "label" => "Member Categories", "singular_label" => "Member Categories", "rewrite" => true)); register_taxonomy_for_object_type('cmt-team-category', 'cmt-management-team'); flush_rewrite_rules(); }
So, please, could you help me find a modification of that code to avoid conflict?
Thanks in advance.
D?izis
- The topic ‘Custom Team Manager conflict with WooCommerce endpoints’ is closed to new replies.