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 //<~ don't add me in | |
| add_filter( 'wp_nav_menu_items', 'my_account_loginout_link', 10, 2 ); | |
| /** | |
| * Add WooCommerce My Account Login/Logout to Menu | |
| * | |
| * @see https://support.woothemes.com/hc/en-us/articles/203106357-Add-Login-Logout-Links-To-The-Custom-Primary-Menu-Area | |
| */ | |
| function my_account_loginout_link( $items, $args ) { | |
| if (is_user_logged_in() && $args->theme_location == 'primary') { //change your theme location menu to suit |
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 //<~ don't add me in | |
| add_action( 'genesis_before_entry', 'wpb_remove_comments_category' ); | |
| function wpb_remove_comments_category() { | |
| if ( !in_category( 38 ) ) {//adjust your Category ID's in the conditional | |
| remove_action( 'genesis_after_entry', 'genesis_get_comments_template' ); | |
| } | |
| } |
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 // <~ don't add me in | |
| add_filter('mime_types', 'themeprefix_add_svg_images'); | |
| //Allow SVG Images Via Media Uploader | |
| function themeprefix_add_svg_images($mimetypes) { | |
| $mimetypes['svg'] = 'image/svg+xml'; | |
| return $mimetypes; | |
| } |
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_action( 'toplevel_page_genesis_settings_page_boxes', 'lc_remove_unwanted_genesis_metaboxes' ); | |
| /** | |
| * Remove the blog page settings metabox from the Genesis Theme Settings | |
| * Desired if following the suggestion by Bill Erickson to not use the Blog page template | |
| * that comes standard in the Genesis Theme | |
| * | |
| * @link http://www.billerickson.net/dont-use-genesis-blog-template/ | |
| */ | |
| function lc_remove_unwanted_genesis_metaboxes() { |
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 | |
| /** | |
| * WooCommerce Template | |
| * | |
| * Template used for all WooCommerce views for your site | |
| * | |
| */ | |
| //* Remove standard post content output | |
| remove_action( 'genesis_loop', 'genesis_do_loop'); |
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 //* Mind this opening php tag | |
| /** | |
| * Display Last Updated date if a post has been updated (Genesis Framework) | |
| * Includes estimated read time via the Estimated Post Reading Time plugin | |
| * | |
| * @author Ren Ventura <EngageWP.com> | |
| * @link http://www.engagewp.com/display-updated-date-instead-of-published-date-in-genesis/ | |
| */ | |
| add_filter( 'genesis_post_info', 'rv_post_info_filter_with_est_read_time' ); |
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 //* Mind this opening PHP tag | |
| /** | |
| * Get previous and next post permalinks | |
| */ | |
| get_permalink( get_adjacent_post()->ID ); # Previous | |
| get_permalink( get_adjacent_post( false, '', false )->ID ); # Next |
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 //* Mind this opening PHP tag | |
| // Remove the logout link in comment form | |
| add_filter( 'comment_form_logged_in', '__return_empty_string' ); |
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: WPMDB Pro Migration Complete Notifications | |
| Plugin URI: http://deliciousbrains.com | |
| Description: Get notified when a migration completes | |
| Author: Delicious Brains | |
| Version: 0.0 | |
| Author URI: http://deliciousbrains.com | |
| */ |