1) Define the custom hook in functions.php
function latest_products_hook() { do_action('latest_products_hook'); }
2) Place anywhere you want in your template files
<?php latest_products_hook(); ?>
3) Create the function
add_action( 'latest_products_hook', 'storefront_recent_products', 30);
Leave a Reply