popmake_emodal_popup_is_loadable( $return, $popup_id )
Contents
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; }
Expand full source code Collapse full source code View on Trac