Location: everywhere
DJ ANIMATIONS MUSICALES
DJ ANIMATIONS MUSICALES
DJ ANIMATIONS MUSICALES
DJ-Animations Musicalesd
DJ-Animations Musicalesd
Automated Cat to Nav
add_action(‘save_post’, ‘check_and_add_categories_to_menu’, 20, 3); function check_and_add_categories_to_menu($post_id, $post, $update) { // Only run for posts and prevent autosaves if (wp_is_post_autosave($post_id) || wp_is_post_revision($post_id) || $post->post_type !== ‘post’) { return; } $locations = get_nav_menu_locations(); if (!isset($locations[‘primary’])) return; $menu_id = $locations[‘primary’]; $menu_items = wp_get_nav_menu_items($menu_id);…Continue reading
Accordion Template Helper
/** * For the Accordion Template, this is a helper script * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_action( ‘wp_head’, function () { ?>Continue reading
Mobile Menu Shortcode
function mobile_menu_shortcode( $atts ) { $atts = shortcode_atts( array( ‘menu_id’ => ”, // Optional menu ID ‘svg_url’ => ”, // Optional SVG URL for submenu toggle icon ), $atts, ‘mobile_menu’ ); // If no menu ID provided, get the first…Continue reading
WooCommerce Local Pickup Date Field | WooCommerce Pickup Date
// 1. Show pickup date after shipping & before tax/totals add_action(‘woocommerce_review_order_after_shipping’, ‘custom_pickup_date_field’); function custom_pickup_date_field() { $tomorrow = date(‘Y-m-d’, strtotime(‘+1 day’)); ?> *Continue reading