Author Archives: Sunil Chaudhary - Page 10
Check a email exists in WordPress
Sometimes we have a email address and we want to check whether it exists in our wordpress database or not. To handle these type of situations we will use default wordpress function that is : email_exists( $email ); // where…
Check page in WordPress
As we all are familiar with the use of pages in wordpress. Here we are discussing about the detection of pages or a specific page in wordpress. We have a default function is wordpress, that is : <?php is_page(); ?>…
Check user logged in or not in WordPress
Sometimes we need to check a if user is logged in on the website or not. As in a case we want to show a message to the current user or we want to show some specific content to a…
Contact form 7 : call a function after form submit
Now a days we are very familiar to contact form 7 because when we think about any form submission then only contact from 7 clicks to our mind first. As we know we have done so many modifications in the…
Solution to ReferenceError: ajaxurl is not defined
Sometimes we face "ReferenceError: ajaxurl is not defined" while working with ajax in wordpress. Ajax will not work in this case and we will get this error while checking console by inspecting our browser. Simple solution to resolve this issue…
Contact form 7 : Redirect after form submit
Contact form 7 is a very good plugin, generally we are using it in form submission in wordpress. Normally it uses ajax for showing validation errors while filling the form. If all the values filled in the form are as…