Skip to content

Instantly share code, notes, and snippets.

View 21stcenturyblogger's full-sized avatar

Wayne Brett 21stcenturyblogger

View GitHub Profile
@21stcenturyblogger
21stcenturyblogger / class-developer-branding-admin.php
Created February 7, 2016 01:05
adding options to wp settings api
<?php
/* Nate field is not saving a value. Or possible updating the value? Any ideas?
/**
* The admin-specific functionality of the plugin.
*
* @link http://waynebrett.com
* @since 1.0.0
*
* @package Developer_Branding
* @subpackage Developer_Branding/admin
@21stcenturyblogger
21stcenturyblogger / RemoveCustomizerSections.php
Created November 25, 2015 04:38
Remove common sections or panels from the WordPress theme customizer
// Remove unwanted sections or panels in the theme customizer
// Add to child theme fuctions.php or child_theme_functions.php or child-theme-customizer.php
function remove_customizer_options_sections(){
global $wp_customize;
// Normal customizer sections
//$wp_customize->remove_panel('nav_menus'); // Menus section
//$wp_customize->remove_section('title_tagline'); // Site Identity section