This file contains 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
/** | |
* Filter the Genesis CPT breadcrumb. | |
* | |
* @since 2.5.0 | |
* | |
* @param string $crumb HTML markup for the CPT breadcrumb. | |
* @param array $args Arguments used to generate the breadcrumbs. Documented in Genesis_Breadcrumbs::get_output(). | |
*/ | |
function nn_cpt_breadcrumb( $crumb, $args ) { | |
global $wp_query; |
This file contains 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
/** | |
* Return anchor link for a single breadcrumb. | |
* | |
* @param string $url URL for href attribute. | |
* @param string $content Linked content. | |
* @param bool|string $sep Optional. Separator. Default is empty string. | |
* | |
* @return string HTML markup for anchor link and optional separator. | |
*/ | |
function nn_get_breadcrumb_link( $url, $content, $sep = '' ) { |
This file contains 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
/** | |
* Display icon markup before post categories and tags | |
* @param string $post_meta | |
* @return string | |
*/ | |
function nn_post_meta( $post_meta ) { | |
$icon_category = "<i class=\'fa fa-folder-open\'></i>"; | |
$icon_tag = "<i class=\'fa fa-tag\'></i>"; |
This file contains 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
/** | |
* Remove Genesis Theme Settings metaboxes | |
*/ | |
function nn_remove_theme_settings_metaboxes( $_genesis_theme_settings_pagehook ) { | |
remove_meta_box( 'genesis-theme-settings-blogpage', $_genesis_theme_settings_pagehook, 'main' ); | |
remove_meta_box( 'genesis-theme-settings-breadcrumbs', $_genesis_theme_settings_pagehook, 'main' ); | |
remove_meta_box( 'genesis-theme-settings-comments', $_genesis_theme_settings_pagehook, 'main' ); | |
remove_meta_box( 'genesis-theme-settings-feeds', $_genesis_theme_settings_pagehook, 'main' ); | |
remove_meta_box( 'genesis-theme-settings-header', $_genesis_theme_settings_pagehook, 'main' ); |
This file contains 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
/** | |
* Disbale default Genesis widgets | |
*/ | |
function nn_disable_genesis_widgets() { | |
unregister_widget( 'Genesis_Latest_Tweets_Widget' ); | |
unregister_widget( 'Genesis_Menu_Pages_Widget' ); | |
unregister_widget( 'Genesis_User_Profile_Widget' ); | |
unregister_widget( 'Genesis_Widget_Menu_Categories' ); |
This file contains 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
/** | |
* Remove default WordPress dashboard widgets | |
*/ | |
function nn_remove_dashboard_meta_boxes() { | |
global $wp_meta_boxes; | |
// WordPress | |
unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity'] ); | |
unset( $wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now'] ); |
This file contains 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
/** | |
* Customize the CPT Archive Settings page menu label | |
* | |
* @param string $label | |
* @return string | |
*/ | |
function nn_cpt_archive_settings_menu_label( $label ) { | |
$label = __( 'Settings', 'natenault' ); |
This file contains 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
/** | |
* Include only published posts in post query. | |
* | |
* @param array $args | |
* @param array $field | |
* @param int $post_id | |
* @return array | |
*/ | |
function nn_query_only_published_posts( $args, $field, $post_id ) { |
This file contains 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
/** | |
* Remove Genesis Page Templates | |
* | |
* @param array $page_templates | |
* @return array | |
*/ | |
function nn_remove_genesis_page_templates( $page_templates ) { | |
unset( $page_templates['page_archive.php'] ); | |
unset( $page_templates['page_blog.php'] ); |
This file contains 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
add_filter( ‘jetpack_just_in_time_msgs’, ‘__return_false’ ); |
NewerOlder