Skip to content

Instantly share code, notes, and snippets.

[
{
"id": "20768",
"title": "Event 1",
"start": 1531828524,
"end": 1531832124,
"allDay": false
},
{
"id": "20773",
[
{
"id": "20768",
"title": "Event 1",
"start": 1531828524,
"end": 1531832124,
"allDay": false
},
{
"id": "20773",
<?php
add_filter('acf/location/rule_types', 'acf_location_rules_types');
function acf_location_rules_types( $choices ) {
$choices['Utilisateur']['user_id'] = 'ID utilisateur';
return $choices;
}
add_filter('acf/location/rule_values/user_id', 'acf_location_rules_values_user');
@will83
will83 / gist:a2f58996a45fa239587d32fead846f39
Last active August 13, 2025 10:19
Adjust Wordpress admin bar 782px breakpoint with SM/MD tailwind breakpoint
<?php
/**
* Customize WordPress admin bar breakpoints (782px → 767px)
*/
class AdminBarBreakpointCustomizer {
private const OLD_BREAKPOINTS = ['782px', '783px'];
private const NEW_BREAKPOINTS = ['767px', '768px'];
public function __construct() {
add_action('wp_enqueue_scripts', [$this, 'customizeAdminBarCSS'], 100);