Skip to content

Instantly share code, notes, and snippets.

/**
* Add featured image thumbnails to children of menu items with class menu-thumbs
*
* @param array $items List of menu objects (WP_Post).
* @param array $args Array of menu settings.
* @return array
*/
function add_images_to_special_submenu( $items ) {
$special_menu_parent_ids = array();
## If URL is SSL challenge (i.e. /.well-known/acme-challenge/[unique-id]) - relating to SSL renewal which was failing because the challenge URL was redirecting to skiarmadillo.com
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/(.*) [NC]
RewriteRule (.*) https://www.domain.co.uk/ [L,R=301]