Created
March 24, 2024 15:06
-
-
Save chris-castillo-dev/6eab2e910ae4e3956dcb5c1eab891e12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_page_attributes_taxonomy() { | |
$args = array( | |
'label' => __( 'Page Attributes', 'textdomain' ), | |
'public' => false, | |
'rewrite' => false, | |
'hierarchical' => false, | |
'show_ui' => true, | |
'show_in_quick_edit' => true, // Added this line to show in Quick Edit | |
'show_admin_column' => true, | |
); | |
register_taxonomy( 'page_attributes', 'page', $args ); | |
} | |
add_action( 'init', 'add_page_attributes_taxonomy' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment