Hierarchical post? Do nothing
-
I am using the
redirection_monitor_types
filter to add
more post types the Redirection URL monitor should watch.However, there is one line in code that prevents this for a particular CPT:
// Hierarchical post? Do nothing
$type = get_post_type( $post->ID );
if ( is_post_type_hierarchical( $post->post_type ) && $type !== ‘page’ ) {
return false;
}
So hierarchical custom post types (not pages) are always ignored.
Why? I really want this enabled for my hierarchical custom post type.
How can I get around this restriction? There seems to be no option, hook or filter.Thanks and
with best regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Hierarchical post? Do nothing’ is closed to new replies.