How To Disable Automatic Paragraph Tags (With and Without Plugin)

If you are familiar with the formatting of posts and pages in WordPress, you may have already noticed that WordPress separates paragraphs with automatically inserted <p> tags (particularly in WordPress classic editor). This can sometimes cause trouble. However, a simple code snippet can be inserted to disable this automatic formatting. WordPress uses the WordPress wpautop … Read more

Stop Storing IP Address in WordPress Comments or Limit the Storage Time

The storage of IP addresses of blog commenters is a default WordPress feature. It helps website administrators fight comment spam. Akismet uses this data to block comments from suspicious IP addresses. If you prefer to moderate blog comments individually and don’t need IP addresses, then you can definitely remove them from your WP database. But … Read more

How to Display Mobile or Desktop Only Content Using WordPress Function

By using WordPress’s built-in mobile browser detection function “wp_is_mobile”, you can create a shortcode that displays or hides text on smartphones. WP_is_mobile is set to “true” when a visitor visits via a mobile browser, allowing you to display or hide information depending on the device. The code snippet allows using shortcodes [mobileonly][/mobileonly] and [desktoponly][/desktoponly] to … Read more

How to Disable Password Change Notifications in WordPress

This scenario is well known to WordPress website administrators who have multiple registered users. When a user forgets their password, WordPress sends an e-mail notification to the administrator. You can easily disable these emails if you do not wish to receive them. Administrators of WordPress websites receive various notification e-mails by default. The e-mails are … Read more