Catch the moment when theme is deleted

There are two direct actions that you can hook into while deleting a theme do_action( ‘delete_theme’, $stylesheet ); And do_action( ‘deleted_theme’, $stylesheet, $deleted ); Now about the error_log() function, you seem to be missing a argument, the destination. One of my debugging tool is a custom error_log function, this is its code. error_log(print_r($some_value, true), 3, … Read more

Category-specific loop not working

Try using the below in your newfeed.php. I was able to test using query_post by passing an array of the category details it had. I’ve also noticed we have to reset the query since it will be used to grab the page news in its own have_post() / the_post() if not it will overwrite the … Read more