PUM_ConditionCallbacks::is_post_type( $post_type )


Description Description


Source Source

File: classes/ConditionCallbacks.php

	public static function is_post_type( $post_type ) {
		global $post;
		return is_object( $post ) && ( is_singular( $post_type ) || $post->post_type == $post_type );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.