Author: Support Admin

Quickly Enable Debug Mode On WordPress Website When Needed
[ad_1] If you have ever faced “WordPress white screen of death” then you probably already know that there is something wrong on your website and in situations like this, you must switch ON WordPress debug mode on your website to diagnose the issue. But to enable debug mode, you will require to edit WordPress configuration…

Update WordPress Password via SQL (No phpMyAdmin)
[ad_1] By OutsourcedContent — on April 15, 2019 Run this from a plugin or a file that will be executed. global $wpdb; $wpdb->query( “UPDATE wp_users SET user_pass= MD5(‘new-password’) WHERE user_login = ‘known-username'” ); Refer: https://stackoverflow.com/a/23635330/8255629 [ad_2]

Debug Tools For WordPress / PHP – current_filter and debug_backtrace
[ad_1] By OutsourcedContent — on June 11, 2019 We have already discussed error_log here. The current_filter() function will return the current WordPress filter or action calling a specific function. The return type is string, so it’s straight forward to just use it. Add the following inside the function to know which WordPress action or filter…

How to Display All Tags on Post Edit Page Instead of Frequently Used Tags
[ad_1] WordPress by default shows only 45 frequently used tags on post edit page in WordPress admin. In most of the cases it’s quite fine since most of the users do not have that many tags on their blog. But on a relatively large website, you may have hundreds of tags and you may require…

https://millionclues.com/wordpress-tips/functions-hooked-to-wordpress-action-filter/
[ad_1] https://millionclues.com/wordpress-tips/functions-hooked-to-wordpress-action-filter/ [ad_2]

Disable WooCommerce Marketing menu
[ad_1] By OutsourcedContent — on June 1, 2020 Add the following code to the functions.php of your active theme. add_filter( ‘woocommerce_marketing_menu_items’, ‘__return_empty_array’ ); This will remove the following Marketing menu added in WooCommerce 4.0 [ad_2]

Change Default “Enter Title Here” Placeholder Text In Post Screen
[ad_1] By default WordPress displays “Enter title here” placeholder text in the post title field section on the post screen, where you create a new post. But in case of custom post type, while we register our custom post type, there is no parameter or option to change this default placeholder text to provide more…

.htaccess For WordPress In A Folder Without URL Change
[ad_1] By OutsourcedContent — on June 3, 2021 For quick reference. Remember to change my_subdir and example.com <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteCond %{REQUEST_URI} !^/my_subdir/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /my_subdir/$1 RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteRule ^(/)?$ my_subdir/index.php [L] </IfModule> Reference: Giving WordPress Its Own Directory [ad_2]

Easily Find ID of Post, Page or Product In WordPress
[ad_1] By OutsourcedContent — on June 15, 2021 The easiest way to find the Post ID, Page ID or Product ID in WordPress is to hover over the post in WordPress admin and check the link. The number after post= and before & is the post ID. You can also find this in the address…

Convert WordPress Image Filename To Lowercase
[ad_1] By OutsourcedContent — on June 29, 2021 WordPress by default will preserve capitalisation in filename for images. To make filenames lowercase automatically, add the following to the functions.php of your active theme. /** * Convert filename to lowercase * * @author Arun Basil Lal * @refer https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_handle_upload_prefilter */ function prefix_convert_filename_to_lowercase( $file ) { $image_extensions…