lolirado

Metabox Taxonomy

Jul 1st, 2019
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function dd_listing_status() {
  2.  
  3.     $args = array (
  4.         'label' => esc_html__( 'Status', 'ddls' ),
  5.         'labels' => array(
  6.             'menu_name' => esc_html__( 'Status', 'ddls' ),
  7.             'all_items' => esc_html__( 'All Status', 'ddls' ),
  8.             'edit_item' => esc_html__( 'Edit Status', 'ddls' ),
  9.             'view_item' => esc_html__( 'View Status', 'ddls' ),
  10.             'update_item' => esc_html__( 'Update Status', 'ddls' ),
  11.             'add_new_item' => esc_html__( 'Add new Status', 'ddls' ),
  12.             'new_item_name' => esc_html__( 'New Status', 'ddls' ),
  13.             'parent_item' => esc_html__( 'Parent Status', 'ddls' ),
  14.             'parent_item_colon' => esc_html__( 'Parent Status:', 'ddls' ),
  15.             'search_items' => esc_html__( 'Search Status', 'ddls' ),
  16.             'popular_items' => esc_html__( 'Popular Status', 'ddls' ),
  17.             'separate_items_with_commas' => esc_html__( 'Separate Status with commas', 'ddls' ),
  18.             'add_or_remove_items' => esc_html__( 'Add or remove Status', 'ddls' ),
  19.             'choose_from_most_used' => esc_html__( 'Choose most used Status', 'ddls' ),
  20.             'not_found' => esc_html__( 'No Status found', 'ddls' ),
  21.             'name' => esc_html__( 'Status', 'ddls' ),
  22.             'singular_name' => esc_html__( 'Status', 'ddls' ),
  23.         ),
  24.         'public' => true,
  25.         'show_ui' => true,
  26.         'show_in_menu' => true,
  27.         'show_in_nav_menus' => true,
  28.         'show_tagcloud' => true,
  29.         'show_in_quick_edit' => false,
  30.         'show_admin_column' => true,
  31.         'show_in_rest' => true,
  32.         'hierarchical' => false,
  33.         'query_var' => true,
  34.         'sort' => false,
  35.         'rewrite_no_front' => false,
  36.         'rewrite_hierarchical' => false,
  37.         'rewrite' => true,
  38.     );
  39.  
  40.     register_taxonomy( 'status', array( 'listings' ), $args );
  41. }
  42. add_action( 'init', 'dd_listing_status', 0 );
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×