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 support for custom header | |
add_theme_support( 'custom-header', array( | |
'admin-preview-callback' => 'sixteen_nine_admin_header_callback', | |
'default-text-color' => 'ffffff', | |
'header-selector' => '.site-header .site-avatar img', | |
'height' => 224, | |
'width' => 224, | |
'wp-head-callback' => '__return_false', | |
) ); |
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 | |
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
/** | |
* 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 | |
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
<?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 | |
// 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
if ($user->get('id') || ($viewnow == 'category' && $viewcache == 0)) { | |
$view->display(); | |
} else { | |
$option = JRequest::getCmd('option'); | |
$cache =& JFactory::getCache($option, 'view'); | |
$cache->get($view, 'display'); | |
} | |
} |
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
if ($user->get('id') || ($viewnow == 'category' && $viewcache == 0)) { | |
$view->display(); | |
} else { | |
+ | |
+ // Workaround for token caching | |
+ if ($viewName == 'contact') | |
+ { | |
+ ob_start(); | |
+ } | |
+ |
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
© Copyright 2009, [Your Company Name]. All rights reserved |
OlderNewer