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 PHP file | |
add_filter( "register_post_type_resume", "wpjm_no_name_resume_false_rewrite" ); | |
function wpjm_no_name_resume_false_rewrite( $args ){ | |
$args['rewrite'] = false; | |
$args['query_var'] = false; | |
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
<?php | |
/* | |
* Plugin Name: DS.LC Force Jetpack Modules | |
* Plugin URI: http://jetpack.me | |
* Description: Custom plugin to enable exact set of Jetpack Modules | |
* Author: Brandon Kraft | |
* Version: 1.0.0 | |
* Author URI: https://kraft.im/ | |
* License: GPL2+ | |
*/ |
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_action( 'wp_enqueue_scripts', 'remove_application_js' , 11 ); | |
function remove_application_js(){ | |
wp_deregister_script( 'wp-job-manager-job-application' ); | |
} |
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 if placing in existing file | |
function my_new_customer_data( $new_customer_data ){ | |
$new_customer_data['role'] = 'candidate'; | |
return $new_customer_data; | |
} | |
add_filter( 'woocommerce_new_customer_data', 'my_new_customer_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 //remove if adding to existing file. | |
add_filter('resume_manager_settings', 'bk_add_email_resumes'); | |
function bk_add_email_resumes( $settings ){ | |
$settings['resume_submission'][1][] = array( | |
'name' => 'resume_manager_email_notifications', | |
'std' => '', | |
'label' => __( 'E-Mail Addresses To Be Notified', 'wp-job-manager-resumes' ), | |
'desc' => __( 'Instead of the admin, bother these folks instead.', 'wp-job-manager-resumes' ), | |
'type' => 'input' |
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 if using an existing file | |
add_filter( 'submit_resume_form_show_signin', '__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
<?php //remove in an existing PHP file. | |
// This helps with Open Graph image tags in Jetpack. | |
add_action('init', 'wpjm_thumb_support'); | |
function wpjm_thumb_support(){ | |
add_post_type_support('job_listing', 'thumbnail' ); | |
} |
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 adding to an existing php file. | |
add_filter( 'resume_manager_get_resumes', 'bk_random_query_wpjm', 10, 2); | |
function bk_random_query_wpjm( $query_args, $args ){ | |
if ( $query_args['orderby'] = 'rand' ) { | |
$query_args['rand_arg'] = wp_rand(); | |
} | |
return $query_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
<?php //remove in existing PHP file | |
add_filter( 'resume_manager_new_resume_notification_recipient', 'bk_add_resume_notif' ); | |
function bk_add_resume_notif( $recipients ){ | |
$recipients = "[email protected]"; | |
return $recipients; | |
} |
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: Always Show Featured Images (JP Mobile) | |
Plugin URI: https://jetpack.me/ | |
Description: Always display the featured images for a post everywhere possible. | |
Version: 0.1 | |
Author: Brandonk Kraft | |
Author URI: https://kraft.im | |
*/ |