HEX
Server: Apache
System: Linux uws7-179.cafe24.com 3.10.0-1160.119.1p.el7.x86_64 #1 SMP Thu Sep 11 14:15:01 KST 2025 x86_64
User: medikors (1589)
PHP: 7.3.1p1
Disabled: mysql_pconnect
Upload Files
File: /medikors/www/eng/wp-content/plugins/happy-elementor-addons-pro/classes/helpers.php
<?php
/**
 * Helper class
 *
 * @package Happy_Addons_Pro
 * @since 1.0.0
 */
namespace Happy_Addons_Pro;

defined( 'ABSPATH' ) || die();

class Helpers {

    /**
     * Fetch all section templates
     *
     * @since 1.0.0
     *
     * @return array
     */
    public static function get_section_templates() {
        $items = \Elementor\Plugin::instance()->templates_manager->get_source( 'local' )->get_items();
        if ( ! empty( $items ) ) {
            $items = wp_list_filter( $items, ['type' => 'section'] );
            $items = wp_list_pluck( $items, 'title', 'template_id' );
            return $items;
        }
        return [];
    }
}