Created
April 11, 2019 13:39
-
-
Save jrstaatsiii/2ead012bf942e24ceaf63adb967890e3 to your computer and use it in GitHub Desktop.
make post's hierarchal
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
add_filter('register_post_type_args', 'hierarchal_posts', 10, 2); | |
function hierarchal_posts($args, $post_type){ | |
if ($post_type == 'post'){ | |
$args['hierarchal'] = true; | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment