get_current_user_id(), // 0 means "every level, whatever its currency", which is what the // template reads. Naming a point type narrows it. 'point_type_id' => 0, ), $atts, 'gameengine_level'); if (empty($atts['user_id'])) { return ''; } \GameEngine\Assets::enqueue_frontend(); ob_start(); \GameEngine\Helper::get_template('shortcode/levels.php', array( 'user_id' => $atts['user_id'], 'point_type_id' => $atts['point_type_id'], )); return apply_filters('gameengine/templates/shortcode/levels', ob_get_clean()); } }