This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| remove_meta_box( 'postexcerpt', 'post', 'side' ); | |
| // use original box: | |
| // add_meta_box('postexcerpt', __( 'Plain Text Summary' ), 'post_excerpt_meta_box', 'post', 'normal', 'high'); | |
| // replace box altogether: | |
| add_meta_box( 'postexcerpt', __( 'Plain Text Summary' ), 'custom_post_excerpt_meta_box', 'post', 'normal', 'high' ); | |
| function custom_post_excerpt_meta_box( $post ) { | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Replace primary navigation to remove unnecessary "Main navigation" heading, duplicated in ARIA label | |
| remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
| add_action( 'genesis_after_header', 'scl_do_nav' ); | |
| function scl_do_nav() { | |
| //* Do nothing if menu not supported | |
| if ( ! genesis_nav_menu_supported( 'primary' ) || ! has_nav_menu( 'primary' ) ) | |
| return; | |
| $class = 'menu genesis-nav-menu menu-primary'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'login_redirect', 'tees_subsite_login_redirect', 100, 3 ); | |
| function tees_subsite_login_redirect( $redirect_to, $request_redirect_to, $user ) { | |
| if ( !is_user_member_of_blog() || ( is_main_site() && !is_super_admin() ) ) { | |
| $redirect_to = get_admin_url( get_userdata( $user->ID )->primary_blog ); | |
| } | |
| return $redirect_to; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function tees_add_network_default_roles( $user_id ) { | |
| if ( is_main_site() && !is_user_member_of_blog( $user_id ) ) | |
| add_user_to_blog( get_current_blog_id(), $user_id, 'subscriber' ); | |
| } | |
| add_action( 'wpmu_activate_user', 'tees_add_network_default_roles', 10, 1 ); | |
| add_action( 'wpmu_new_user', 'tees_add_network_default_roles', 10, 1 ); | |
| add_action( 'user_register', 'tees_add_network_default_roles', 10, 1 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Texas A&M Multisite Network Administration | |
| Version: 0.4.2 | |
| Plugin URI: https://github.tamu.edu/COE-wordpress/coe-network-admin | |
| Description: Adds columns to the Network Sites list screen; subsite user login redirects. | |
| Author: Stephanie Leary | |
| Author URI: http://stephanieleary.com | |
| GitHub Plugin URI: https://github.tamu.edu/COE-wordpress/coe-network-admin | |
| GitHub Enterprise: https://github.tamu.edu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'default_hidden_meta_boxes', 'scl_toggle_meta_boxes', 10, 2 ); | |
| function scl_toggle_meta_boxes( $hidden, $screen ) { | |
| $hide_these = array( | |
| 'people_typediv', | |
| 'facility_typediv', | |
| 'genesis-theme-settings-version', | |
| 'genesis-theme-settings-feeds', |