Guest User

Untitled

a guest
Jun 19th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. add_action( 'init', 'kruch_custom_taxonomies' );
  2. /**
  3.  * Register custom taxonomies
  4.  */
  5. function kruch_custom_taxonomies() {
  6.     register_taxonomy('userdatatype',
  7.         [ 'userdata' ], [
  8.             'public'            => false,
  9.             'show_ui'           => true,
  10.             'show_in_menu'      => true,
  11.             'hierarchical'      => false,
  12.             'rewrite'           => true,
  13.             'capabilities'      => [],
  14.             'meta_box_cb'       => null,
  15.             'show_admin_column' => false,
  16.             'show_in_rest'      => null,
  17.             'rest_base'         => null,
  18.     ] );
  19. }
Advertisement
Add Comment
Please, Sign In to add comment