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( 'site_status_tests', function ( $tests ) { | |
unset( $tests['direct']['amp_persistent_object_cache'] ); | |
return $tests; | |
}, 99 ); |
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 | |
function jetpack_support_reset_protect_ip() { | |
delete_site_option('trusted_ip_header'); | |
} | |
add_action( 'admin_head', 'jetpack_support_reset_protect_ip'); |
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( 'akismet_comment_form_privacy_notice_markup', 'bk_custom_akismet_markup' ); | |
function bk_custom_akismet_markup( $markup ) { | |
$markup = '<p class="akismet_comment_form_privacy_notice">' . sprintf( | |
__( 'This site uses Akismet to reduce spam. <a href="%s" target="_blank" rel="nofollow">Learn how your comment data is processed</a>.', 'akismet' ), | |
'https://akismet.com/privacy/' | |
) . '</p>'; | |
return $markup; | |
} |
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 | |
/* | |
Plugin Name: Jetpack - Disable Slideshow | |
Plugin URI: https://jetpack.com | |
Description: Disable Jetpack's slideshow feature | |
Author URI: | |
Version: 2017.07.24 | |
License: GPL | |
*/ |
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 in an existing file | |
add_action('init', 'kraft_wpjmresume_publicize'); | |
function kraft_wpjmresume_publicize() { | |
add_post_type_support( 'resume', 'publicize' ); | |
} |
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 // Remove this line if copy/pasting to an existing file. | |
/* | |
Plugin Name: Only Display Jetpack Ads on Posts | |
Plugin URI: https://kraft.blog | |
Description: Only output Jetpack Ads on posts and no other post type. | |
Author: Kraft | |
Author URI: https://kraft.im/ | |
Version: 2016.06.15 | |
License: GPL | |
*/ |
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 // Remove this in an existing functions.php file | |
add_filter( 'job_manager_indeed_get_jobs_args', 'custom_job_manager_indeed_get_jobs_args' ); | |
function custom_job_manager_indeed_get_jobs_args( $args ) { | |
$args['sort'] = 'date'; | |
return $args; | |
} |
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
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:b17b814a12d5c8fb83411dbcbe9093a329011676] |
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 //remove in an existing file | |
add_filter( 'cron_schedules', 'jp_support_sync_schedule' ); | |
function jp_support_sync_schedule( $schedules ) { | |
if ( ! isset( $schedules['10min'] ) ) { | |
$schedules['10min'] = array( | |
'interval' => 10 * MINUTE_IN_SECONDS, | |
'display' => __( 'Every 10 minutes' ), | |
); | |
} | |
return $schedules; |
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 this line | |
add_action( 'wp_head', 'bk_unhide_app_details' ); | |
function bk_unhide_app_details(){ ?> | |
<script type="text/javascript"> | |
jQuery(window).load( function() { | |
jQuery( '.application_details' ).show(); | |
jQuery( '.application_button' ).click(function() { | |
}); | |
}); |
NewerOlder