Created
February 21, 2024 09:06
-
-
Save jasperf/d31e46a4340c2a48c8bec26ca6efb4fd to your computer and use it in GitHub Desktop.
WP_Post Object checkj
This file contains 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
if( is_a( $post, 'WP_Post' ) ) { | |
write_log( 'WP_Post' ); | |
} else { | |
write_log( 'WP_Post is not a WP_Post' ); | |
} | |
$category_filters = xx_get_category_filter( $post, $the_term->slug ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment