Author: Support Admin

Log WordPress Database Queries To File
[ad_1] By OutsourcedContent — on August 2, 2021 Useful to see what changes are made in the WordPress database by a plugin, theme or other code. /** * Log database queries to the /wp-content/sql.log file. * * @link https://wordpress.stackexchange.com/a/144353/90061 */ add_filter( ‘query’, function( $query ){ // Filter out everything that shouldn’t be logged. …

How to Check if The Current User is The Post Author in WordPress
[ad_1] While working on a WooCommerce project recently, my client asked me if there is a way to show a message to seller on their own product items. A simple message like “you are the seller of this item” if the product page is previewed by the seller itself. Typically WooCommerce is a plugin which…

Prevent User Registration in WordPress From Specific Domain
[ad_1] Usually it’s a good idea to disable user registration in WordPress, if you do not use membership feature, since spammers can attack your website with spam user registrations. One of my clients had enabled the option “anyone can register” in WordPress settings and allowed visitors to register. Within as week, he received couple of…

How to Disable Emojicons Feature Introduced in New WordPress 4.2
[ad_1] With the release of new WordPress 4.2 version, WordPress team introduced the use of Emojicons in your posts and comments. In order to make this new Emojicons feature to work, WordPress automatically adds JavaScript libraries in your page. Although it’s a nice feature to have for some bloggers who use Emojicons very frequently, but…

How to Allow Users to Login With Email Address in WordPress
[ad_1] WordPress by default assign a unique username to each user on registration. As usernames are unique on a WordPress website, there is a fine possibility that the username a user wants to register has already been taken by another user, in that case, he have to choose a different username that user might not…

How to Change WordPress Email Content Type to HTML Instead of Text
[ad_1] WordPress uses wp_mail function to send all emails and the default content type for these emails is text/plain. It simply means that all emails, goes through WordPress, will be sent in text format only and WordPress will not allow any HTML to be placed in your emails. But on a project, you may require…

How to Stop Loading Contact Form 7 JavaScript And CSS in WordPress
[ad_1] Contact form 7 is undoubtedly one of the most popular plugins in WordPress plugins directory. It makes our life a lot easier by allowing us to create contact forms without any PHP knowledge and add them in our website with the help of shortcode. The plugin is super easy to set up and use.…

Change the Search Results Page URL Slug to ‘/search/term’
[ad_1] Default WordPress URL Structure is not the most Search Engine friendly, and it certainly is not very user friendly too. But WordPress has built in option to enable SEO friendly URLs to make URLs more user friendly. All you need to do is to login to WordPress admin panel and pick a permalink structure…

Strip HTML Tags From the_terms Function Output
[ad_1] If you need to display the terms list of the current post on your website then you must use the_terms function. WordPress function the_term displays the linked terms of a taxonomy separated by user defined characters. It’s very powerful function to get list of categories, tags or any other custom defined taxonomies in WordPress.…

Disable Content Editor for Specific Page Template
[ad_1] While working on a project I needed a way to disable content editor on a specific page. Why you asked? On this project, I created a custom page which has lots of meta-boxes on editor screen and we were not using visual editor for adding any content on that page so we wanted to…