Blockmeister disables the deletion of all custom taxonomies
-
Hello,
you should change the Method allow_delete_only_for_user_added_terms within wp-content/plugins/blockmeister/includes/Pattern_Builder/BlockMeister_Pattern_Category_Taxonomy.php like following:public function allow_delete_only_for_user_added_terms( $caps, $cap, $user_id, $args ) { //allow_delete_term_filter if ( $cap === 'delete_term' && $args ) { $term_id = $args[0]; $term = get_term( $term_id ); if ( $term->taxonomy === 'pattern_category' ) { $term_meta_source = get_term_meta( $term_id, 'source', true ); if ( $term_meta_source !== 'user' ) { $caps = [ 'do_not_allow' ]; } } } return $caps; }
Otherwise Blockmeister disables the deletion of all custom taxonomies ??
Best regards,
BenThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Blockmeister disables the deletion of all custom taxonomies’ is closed to new replies.