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
<?php | |
// use the code below this comment | |
add_action( 'init', 'update_my_custom_type', 99 ); | |
/** | |
* update_my_custom_type | |
* | |
* @author Joe Sexton <joe@webtipblog.com> | |
*/ |
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
<?php | |
/** | |
* Filter the genesis_seo_site_title function to use an image for the logo instead of a background image | |
* | |
* The genesis_seo_site_title function is located in genesis/lib/structure/header.php | |
* @link http://blackhillswebworks.com/?p=4144 | |
* | |
*/ |
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
<?php | |
/** | |
* course_lessons_meta_box_content function. | |
* | |
* @access public | |
* @return void | |
*/ | |
public function course_lessons_meta_box_content () { | |
global $post; |
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
<?php | |
defined( 'ABSPATH' ) OR exit; | |
/** | |
* Plugin Name: (WCM) PHPMailer Exceptions & SMTP | |
* Description: WordPress by default returns <code>FALSE</code> instead of an <code>Exception</code>. This plugin fixes that. | |
*/ | |
add_action( 'phpmailer_init', 'WCMphpmailerException' ); | |
function WCMphpmailerException( $phpmailer ) | |
{ |
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
/** | |
* Attempt to force IE to use most recent rendering engine available | |
* | |
* @link http://blackhillswebworks.com/?p=5578 | |
* @link https://www.modern.ie/en-us/performance/how-to-use-x-ua-compatible | |
*/ | |
add_action( 'genesis_meta', 'bhww_head_meta_ie_compatibility_mode_fix' ); | |
function bhww_head_meta_ie_compatibility_mode_fix() { |
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
<?php | |
add_filter( 'wp_stream_record_array', 'bhww_filter_wp_stream_record_array', 10, 1 ); | |
function bhww_filter_wp_stream_record_array( $recordarr ) { | |
if ( ! isset( $recordarr[0] ) ) | |
return array(); | |
// BackupBuddy (iThemes) entries | |
if ( 'settings' === $recordarr[0]['connector'] && isset( $recordarr[0]['stream_meta']['option'] ) && 'ithemes-updater-cache' === $recordarr[0]['stream_meta']['option'] |
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
static function send_dashboard_emails($course_progress_data = null) { | |
if(empty($_POST["submit_propanel_email"]) || empty($_POST["course_id"]) || empty($_POST[ "learndash_propanel_message"]) || empty($_POST[ "learndash_propanel_subject"]) ) | |
return; | |
$course_id = $_POST["course_id"]; | |
if(is_null($course_progress_data)) | |
$course_progress_data = SFWD_LMS::course_progress_data($course_id); | |
if(empty($course_progress_data)) |
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
<?php | |
//* Do NOT include the opening php tag | |
//* Add multiple grid loops to a page template*/ | |
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
add_action( 'genesis_loop', 'custom_do_grid_loop' ); // Add custom loop | |
function custom_do_grid_loop() { | |
$args = array( |
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
/** | |
* Create Custom Meta Boxes for WooCommerce Product CPT | |
* | |
* Using Custom Metaboxes and Fields for WordPress library from | |
* Andrew Norcross, Jared Atchinson, and Bill Erickson | |
* | |
* @link http://blackhillswebworks.com/?p=5453 | |
* @link https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress | |
*/ | |
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 "Ingredients" and "Benefits" tabs to WooCommerce products | |
* | |
* @link http://blackhillswebworks.com/?p=5453 | |
* @link http://www.sean-barton.co.uk/2013/03/remove-woocommerce-20-reviews-tab | |
* @link http://www.php.net/manual/en/function.htmlspecialchars-decode.php | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'bhww_woo_extra_tabs' ); | |