| @@ -114,9 +114,9 @@ | ||
| 114 | 114 | * |
| 115 | 115 | * @return bool |
| 116 | 116 | */ |
| 117 | 117 | public static function get_post_types( $post ) { |
| 118 | - return apply_filters( 'tutor_check_course_post_type', get_post_type( $post ) ); | |
| 118 | + return apply_filters( 'tutor_check_course_post_type', self::POST_TYPE === get_post_type( $post ), get_post_type( $post ) ); | |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | 122 | * Get courses |