Blog Archives

How I manage WordPress websites with Git, GitHub and Local

A documentation of how I manage my WordPress websites using Git, GitHub and Local (by Flywheel / WP Engine). I am not claiming that this is the best way for everyone. But this works beautifully for me.

Posted in WordPress Tagged with: , , ,

How to boost SEO for your WordPress website if you Know Nothing About It?

WordPress is the most popular Content Management System (CMS) in the world, and most likely your website is running it. Since most of the websites are using it, it keeps evolving and getting better and better with every new iteration,

Posted in WordPress Tagged with: , , ,

Disable WooCommerce Marketing menu

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

Posted in WordPress Tagged with: ,

Find all functions hooked to a WordPress action / filter

Quite simply add this near the apply_filters or do_action. global $wp_filter; error_log( “\n ” . print_r( $wp_filter[‘action_or_filter_tag_name’], true ), 3, dirname(__FILE__) . “/my_error_log.log” );

Posted in WordPress Tagged with:

Debug Tools For WordPress / PHP – current_filter and debug_backtrace

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

Posted in WordPress Tagged with: