popmake_emodal_popup_is_loadable( $return,  $popup_id )


Description Description


Source Source

File: includes/importer/easy-modal-v2.php

function popmake_emodal_popup_is_loadable( $return, $popup_id ) {
	global $post;
	if ( empty( $post ) || ! isset( $post->ID ) ) {
		return $return;
	}
	$easy_modal_id = get_post_meta( $popup_id, 'popup_old_easy_modal_id', true );
	$post_modals   = get_post_meta( $post->ID, 'easy-modal_post_modals', true );
	if ( ! $easy_modal_id || empty( $post_modals ) || ! in_array( $easy_modal_id, $post_modals ) ) {
		return $return;
	}

	return true;
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.