New answers tagged

0

Run this once, it will be saved in database. You can run it once by adding it to functions.php and reloading the site once. $user = new WP_User( $user_id ); // the user id you want to have that capability $user->add_cap( 'edit_others_posts' ); // or any other capability that you want


0

If you want the taxonomy under products post type then you must change your code from. register_taxonomy( 'manufactures', 'manufactures', array( 'hierarchical' => true, 'labels' => $labels, 'query_var' => true, 'show_admin_column' => false, 'show_ui' => true ) ); to register_taxonomy( ...


0

So, what you are trying is to add manufactures taxonomy for product post type of Woocommerce Plugin? Change manufactures object type to product and it should work. register_taxonomy( 'manufactures', 'product', array( 'hierarchical' => true, 'labels' => $labels, 'query_var' => true, 'show_admin_column' ...


0

add_action( 'admin_menu', 'remove_admin_menus' ); function remove_admin_menus(){ global $menu; $menu = array(); }



Top 50 recent answers are included