Change and Update WordPress URLS in Database When Site is Moved to new Host

…wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldurl’,’http://www.newurl’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.oldurl’, ‘http://www.newurl’);…

Read More

Set up malware scanner LMD Maldet and ClamAV on a CloudPanel instance

Cloudpanel Malware Maldetect

…directory that you scan: wget http://www.eicar.org/download/eicar.com wget http://www.eicar.org/download/eicar.com.txt wget http://www.eicar.org/download/eicar_com.zip wget http://www.eicar.org/download/eicarcom2.zip Using LMD as a monitoring app LMD also allows for it to be a monitoring daemon application that…

Read More

Completely hide WooCommerce products from shop, product search and WordPress search

Hidden Woo Products Showing in search

…hidden would show in the search results. add_action(‘pre_get_posts’, ‘wpse_187444_search_query_pre’); /** * Hide Catalog Products Only In Search * @link https://wordpress.stackexchange.com/questions/283393/hidden-woocommerce-products-still-showing-up-in-search-results/283397 * @since 1.7.0 */ function wpse_187444_search_query_pre($query) { if ($query->is_search() &&…

Read More