# gamipress/8.0.1/integrations/jetengine/includes/functions.php

GamiPress – Gamification plugin to reward points, badges &amp; ranks in WordPress, now with AI, version 8.0.1. 42 lines.

- Page: https://pluginprobe.com/plugins/gamipress/8.0.1/code/integrations/jetengine/includes/functions.php
- Raw: https://pluginprobe.com/plugins/gamipress/8.0.1/raw/integrations/jetengine/includes/functions.php
- Modified: 2026-09-14T10:50:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gamipress/8.0.1/code/integrations/jetengine/includes/functions.php#L10-L20`.

```php
<?php
/**
 * Functions
 *
 * @package     GamiPress\JetEngine\Functions
 * @since       1.0.0
 */
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) exit;

/**
 * Check JetEngine post type
 *
 * @since 1.0.0
 * 
 * @param object $post  Post data
 *
 * @return bool
 */
function gamipress_jetengine_check_type( $post ) {

    $array_types = array();

    if( ! class_exists( 'Jet_Engine_CPT' ) ) {
        return false;
    }
    
    // Get JetEngine post types
    $post_types_obj = jet_engine()->cpt;
    $post_types = $post_types_obj->get_items();

    foreach( $post_types as $post_type ) {
        $array_types[] = $post_type['slug'];
    }

    // Bail if the post is not a JetEngine type
    if ( !in_array( $post->post_type, $array_types ) ){
        return false;
    }

    return true;
}
```
