Scottnsd
2/26/2014 - 11:17 PM

Theme Setup: This setup function attaches all of the site-wide functions * to the correct hooks and filters. All the functions themselves

Theme Setup: This setup function attaches all of the site-wide functions

  • to the correct hooks and filters. All the functions themselves
  • are defined below this setup function Genesis Wordpress
<?php

/**
 * Theme Setup
 *
 * This setup function attaches all of the site-wide functions 
 * to the correct hooks and filters. All the functions themselves
 * are defined below this setup function.
 *
 * @author Bill Erickson
 * @link http://www.billerickson.net/genesis-quick-tips/
 *
 */

add_action('genesis_setup','child_theme_setup', 15);
function child_theme_setup() {
	// ** Backend **
	// Remove Unused Menu Items
	add_action('admin_menu', 'be_remove_menus');

	// ** Frontend **		
	// Remove Edit link
	add_filter( 'edit_post_link', '__return_false' );
}