Skip to content

Instantly share code, notes, and snippets.

function wpmu_nav_menus() {
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'wpmu-theme' ),
'sidebar' => __( 'Sidebar Navigation', 'wpmu-theme' ),
) );
}
add_action( 'after_setup_theme', 'wpmu_nav_menus' );
function wpmu_nav_menus() {
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'wpmu-theme' ),
) );
}
add_action( 'after_setup_theme', 'wpmu_nav_menus' );
function wpmu_translation() {
load_child_theme_textdomain( 'wpmu-theme', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'wpmu_translation' );
/**********************************************************************************
wpmu_theme_support - adds theme support for post formats, post thumbnails, HTML5 and automatic feed links
**********************************************************************************/
function wpmu_theme_support() {
/* post formats */
add_theme_support( 'post-formats', array( 'aside', 'quote' ) );
/* post thumbnails */
add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
add_theme_support( 'post-formats', array( 'aside', 'quote' ) );
add_theme_support( 'post-formats' );
/************************************************************************
my_function - brief line describing what it does
************************************************************************/
allow_url_fopen = on