add code in functions.php will slow down the Execution speed?

There’s one thing here you shouldn’t do: add_filter( ‘pre_site_transient_update_core’, create_function( ‘$a’, “return null;” ) ); add_filter( ‘pre_set_site_transient_update_plugins’, create_function( ‘$a’, “return null;” ) ); add_filter( ‘pre_site_transient_update_themes’, create_function( ‘$a’, “return null;” ) ); In my testing, this slowed down the admin side of the site significantly on a fresh local install. This is because if the the … Read more

Using a function to change favorites listing

I recently needed to change the default output also. Here’s how I used this filter to add the post content to the output. /** * Customize the Favorites Listing HTML */ add_filter( ‘favorites/list/listing/html’, ‘custom_favorites_listing_html’, 10, 4 ); function custom_favorites_listing_html($html, $markup_template, $post_id, $list_options) { $html=” <li class=”favorite”> <div class=”favorite-image”> ” . get_the_post_thumbnail( $post_id, ‘our-products’ ) . … Read more