ap_is_cpt( WP_Post $_post )
Description #
Check if post object is AnsPress CPT i.e. question or answer.
Parameters #
- $_postWP_Post (Required) WordPress post object.
Source #
File: includes/functions.php
function ap_is_cpt( $_post ) { return ( in_array( $_post->post_type, array( 'answer', 'question' ), true ) ); }
Expand full source code Collapse full source code View on GitHub: includes/functions.php:2436
Add your comment