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: CC an Email on Applications | |
* Description: Does what it says on the tin. | |
* Version: 1.0 | |
* Author: Adam Heckler | |
* License: GPL v3 | |
*/ | |
add_filter( 'create_job_application_notification_headers', 'job_applications_cc_email' ); |
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
add_filter( 'woocommerce_email_order_meta_fields', 'custom_woocommerce_email_order_meta_fields', 10, 3 ); | |
function custom_woocommerce_email_order_meta_fields( $fields, $sent_to_admin, $order ) { | |
$fields['meta_key'] = array( | |
'label' => __( 'Label' ), | |
'value' => get_post_meta( $order->id, 'meta_key', true ), | |
); | |
return $fields; | |
} |
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
add_filter( 'wcpl_job_package_is_sold_individually', '__return_false' ); | |
add_filter( 'wcpl_resume_package_is_sold_individually', '__return_false' ); |
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
add_filter( 'job_filter_tag_cloud', 'custom_job_filter_tag_cloud' ); | |
function custom_job_filter_tag_cloud( $atts ) { | |
$atts['number'] = 5; | |
return $atts; | |
} |
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 | |
/** | |
* This can either be done with a filter (below) or the field can be added directly to the job-filters.php template file! | |
* | |
* job-manager-filter class handling was added in v1.23.6 | |
*/ | |
add_action( 'job_manager_job_filters_search_jobs_end', 'filter_by_salary_field' ); | |
function filter_by_salary_field() { | |
?> |
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
add_action( 'job_application_email_add_shortcodes', 'register_job_ref_shortcode' ); | |
function register_job_ref_shortcode( $data ) { | |
extract( $data ); | |
add_shortcode( 'job_ref', function( $atts, $content = '' ) use( $job_id ) { | |
return job_application_email_shortcode_handler( $atts, $content, get_post_meta( $job_id, '_job_ref', true ) ); | |
} ); | |
} |
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
function sharedaddy_for_woocommerce() { | |
?> | |
<div class="social"><?php echo sharing_display(); ?></div> | |
<?php | |
} | |
add_action( 'woocommerce_share', 'sharedaddy_for_woocommerce' ); |
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
if ( ! defined( 'SHARETHIS_PUBLISHER_ID' ) ) { | |
define( 'SHARETHIS_PUBLISHER_ID', 'enter your id here' ); | |
} | |
function sharethis_for_woocommerce() { | |
global $post; | |
$thumbnail_id = get_post_thumbnail_id( $post->ID ); | |
$thumbnail = $thumbnail_id ? current( wp_get_attachment_image_src( $thumbnail_id, 'large' ) ) : ''; | |
?> |
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
add_action( 'woocommerce_flat_rate_shipping_add_rate', 'add_another_custom_flat_rate', 10, 2 ); | |
function add_another_custom_flat_rate( $method, $rate ) { | |
$new_rate = $rate; | |
$new_rate['id'] .= ':' . 'custom_rate_name'; // Append a custom ID | |
$new_rate['label'] = 'Rushed Shipping'; // Rename to 'Rushed Shipping' | |
$new_rate['cost'] += 2; // Add $2 to the cost | |
// Add it to WC | |
$method->add_rate( $new_rate ); |
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
add_action( 'job_application_form_fields_end', 'recaptcha_field' ); | |
add_filter( 'application_form_validate_fields', 'validate_recaptcha_field' ); |