Sounds like your after Login Modals – Forced Login
yeah
Actually i am using contact 7 form for a survey
<a class="eModal-1" href="#">[contact-form-7 id="1511" title="survey"]</a>
when some one try to fill form then Modal appear and ask for login. It working good. Now i just want to disable modal functionality for login user. So that login user can fill form.
I don’t want to put registration form in modal. Its just a alert ( You must login. )
with v2+ you can filter what modals are loaded as well as which are printed to the browser.
Something like this should work. Rename the function of coures.
add_filter('emodal_print_modals', 'remove_my_modal');
function remove_my_modal($modals)
{
$id_of_hidden_modal = 2;//The id of your modal.
if(is_user_logged_in())
{
unset($modals[$id_of_hidden_modal]);
}
return $modals;
}
Yeah i have live link of my site. Should i send here?
Unless its a private site you dont want any visitors to i dont see why not.
I just past your provided code in plugin’s function.php and ad my modal id. Its working as i want.
when non user click on form a modal appear and ask for login although login users can fill the form.
I Really appreciate your quick response.
Respect for you.
Feel free to post your link for others to see with the example above. Please take a moment to rate and review the plugin and or support http://wordpress.org/support/view/plugin-reviews/easy-modal
Great support
Danieliser Respect for you.