Skip to content

Instantly share code, notes, and snippets.

View adrianenriquez's full-sized avatar

Adrian Enriquez adrianenriquez

View GitHub Profile
@adrianenriquez
adrianenriquez / docker-compose.yml
Last active January 7, 2026 13:59
Sample WP docker-compose
services:
wordpress:
image: wordpress:6.9-php8.1-apache
restart: always
ports:
- "8100:80"
environment:
WORDPRESS_DB_HOST: "${WORDPRESS_DB_HOST}"
WORDPRESS_DB_USER: "${WORDPRESS_DB_USER}"
WORDPRESS_DB_PASSWORD: "${WORDPRESS_DB_PASSWORD}"
@adrianenriquez
adrianenriquez / placeholder.svg
Created July 30, 2024 03:17
Image placeholder (SVG)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adrianenriquez
adrianenriquez / menu.php
Created December 5, 2023 08:06
wp_nav_menu cheat sheet
```
wp_nav_menu( array $args = array(
'menu' => "", // (int|string|WP_Term) Desired menu. Accepts a menu ID, slug, name, or object.
'menu_class' => "", // (string) CSS class to use for the ul element which forms the menu. Default 'menu'.
'menu_id' => "", // (string) The ID that is applied to the ul element which forms the menu. Default is the menu slug, incremented.
'container' => "", // (string) Whether to wrap the ul, and what to wrap it with. Default 'div'.
'container_class' => "", // (string) Class that is applied to the container. Default 'menu-{menu slug}-container'.
'container_id' => "", // (string) The ID that is applied to the container.
'fallback_cb' => "", // (callable|bool) If the menu doesn't exists, a callback function will fire. Default is 'wp_page_menu'. Set to false for no fallback.
'before' => "", // (string) Text before the link markup.