Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'register_post_type_args', function ( $args, $post_type ) {
- if ( $post_type == "sub" ) {
- $args['show_in_menu'] = 'edit.php?post_type=top';
- $args['labels']['all_items'] = __( 'All Sub Items', 'my-text-domain' );
- }
- return $args;
- }, 11, 2 );
Add Comment
Please, Sign In to add comment