HEX
Server: Apache
System: Linux server.onegroup3.co.nz 5.14.0-570.62.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 10:10:59 EST 2025 x86_64
User: importersclearan (1088)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/importersclearan/www/wp-content/plugins/coming-soon/app/functions-envira-gallaries.php
<?php

/**
 * Get All Envira Gallery.
 *
 * @return void
 */
function seedprod_lite_get_envira_galleries() {
	if ( check_ajax_referer( 'seedprod_nonce' ) ) {
		if ( ! current_user_can( apply_filters( 'seedprod_builder_preview_render_capability', 'edit_others_posts' ) ) ) {
			wp_send_json_error();
		}

		$type      = filter_input( INPUT_GET, 'type', FILTER_SANITIZE_STRING );
		$galleries = array();

		if ( 'lite' === $type ) {
			if ( class_exists( 'Envira_Gallery_Lite' ) ) {
				$galleries = Envira_Gallery_Lite::get_instance()->_get_galleries();
			}
		} elseif ( class_exists( 'Envira_Gallery' ) ) {
				$galleries = Envira_Gallery::get_instance()->_get_galleries();
		}
		wp_send_json( $galleries );
	}
}