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: Add Apex Live Chat | |
* Plugin URI: https://prothemedesign.com | |
* Description: Add the Apex live chat script to the wp_foot | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: ptd | |
*/ |
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 if (!defined('ABSPATH')) die; | |
if ( !wp_next_scheduled('pipdig_p3_daily_event') ) { | |
wp_schedule_event( time(), 'daily', 'pipdig_p3_daily_event'); // hourly, twicedaily, daily | |
} | |
if ( !wp_next_scheduled('pipdig_p3_hourly_event') ) { | |
wp_schedule_event( time(), 'hourly', 'pipdig_p3_hourly_event'); | |
} | |
// Daily event |
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 | |
if (!defined('ABSPATH')) die; | |
// https://make.wordpress.org/core/2018/01/17/auto-formatting-of-author-bios-reverted-in-4-9-2/ | |
add_filter('get_the_author_description', 'wptexturize'); | |
add_filter('get_the_author_description', 'convert_chars'); | |
add_filter('get_the_author_description', 'wpautop'); | |
add_filter('get_the_author_description', 'shortcode_unautop'); |
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 | |
if (!defined('ABSPATH')) die; | |
if (get_option('p3_jetpack_override')) { | |
return; | |
} | |
if (is_admin() && isset($_GET['p3_jetpack_override'])) { // If peeps want to use Vanilla Jetpack | |
update_option('p3_jetpack_override', 1); | |
return; |
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: pipdig Power Pack (p3) | |
Plugin URI: https://www.pipdig.co/ | |
Description: The core functions of any pipdig theme. | |
Author: pipdig | |
Author URI: https://www.pipdig.co/ | |
Version: 4.7.3 | |
Text Domain: p3 | |
License: Copyright 2019 pipdig Ltd. All Rights Reserved. |
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: Change Archive Image Thumbnail size. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change the size of the archive image thumbnails so that they can be made full width. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: broadsheet | |
*/ |
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: Change Header Image Size | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change the size of the header image. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
*/ |
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: Change Archive Image Thumbnail size. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change the size of the archive image thumbnails so that they can be made full width. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: broadsheet | |
*/ |
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: Romero Disable Featured Images from Attachments | |
* Plugin URI: https://prothemedesign.com | |
* Description: Stop Romero from using attachments as a replacement for featured images if there are no featured images to use. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: romero | |
*/ |
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 'fix' for typographic widows | |
* This is the same code used on wordpress.com | |
* | |
* @param type $str | |
* @return string | |
*/ | |
function theme_widont( $str = '' ) { |