PATH:
home
/
shotlining
/
portal.shotlining.com
/
wp-content
/
plugins
/
elementor
/
core
/
utils
<?php namespace Elementor\Core\Utils; use Elementor\Plugin; if ( ! defined( 'ABSPATH' ) ) { exit; } class Template_Library_Element_Iterator { public static function iterate( array $elements, callable $callback ): array { if ( ! self::is_valid_elements_array( $elements ) ) { return $elements; } return Plugin::instance()->db->iterate_data( $elements, $callback ); } private static function is_valid_elements_array( array $elements ): bool { if ( empty( $elements ) ) { return true; } if ( isset( $elements['elType'] ) ) { return true; } $first_element = reset( $elements ); return is_array( $first_element ) && ( isset( $first_element['elType'] ) || isset( $first_element['id'] ) || empty( $first_element ) ); } }
[-] http.php
[edit]
[+]
promotions
[-] plugins-manager.php
[edit]
[+]
..
[-] template-library-element-iterator.php
[edit]
[-] template-library-import-export-utils.php
[edit]
[-] version.php
[edit]
[-] hints.php
[edit]
[+]
svg
[-] force-locale.php
[edit]
[-] str.php
[edit]
[-] assets-config-provider.php
[edit]
[-] collection.php
[edit]
[-] assets-translation-loader.php
[edit]
[-] ab-test.php
[edit]
[-] static-collection.php
[edit]
[-] exceptions.php
[edit]
[+]
api
[-] template-library-snapshot-processor.php
[edit]
[+]
import-export