Skip to content

Instantly share code, notes, and snippets.

View inorbita's full-sized avatar

Richard inorbita

  • The Netherlands
View GitHub Profile
@garvs
garvs / block-admin-notices.php
Last active December 16, 2022 05:41
Block admin notices option for User Role Editor
<?php
add_filter('ure_role_additional_options', 'ure_add_block_admin_notices_option', 10, 1);
function ure_add_block_admin_notices_option($items) {
$item = URE_Role_Additional_Options::create_item('block_admin_notices', esc_html__('Block admin notices', 'user-role-editor'), 'admin_init', 'ure_block_admin_notices');
$items[$item->id] = $item;
return $items;
}
@seancdavis
seancdavis / index.html
Created March 3, 2016 21:00
Full-Size, Looping Background Video with YouTube Video
<style>
.bg-video {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
z-index: -1;
}
@coreybruyere
coreybruyere / sage-bem-walker
Created July 1, 2015 04:06
Roots/Sage BEM nav walker
<?php
namespace Roots\Soil\Nav;
use Roots\Soil\Utils;
/**
* Cleaner walker for wp_nav_menu()
*
* Walker_Nav_Menu (WordPress default) example output: