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_action( 'new_job_application', 'send_new_job_application_confirmation', 10, 2 ); | |
function send_new_job_application_confirmation( $application_id, $job_id ) { | |
$candidate_email = get_post_meta( $application_id, '_candidate_email', true ); | |
$message = sprintf( "Thanks for your application for '%s'. We'll get back to you as soon as possible.", get_the_title( $job_id ) ); | |
$attachments = array( WP_CONTENT_DIR . '/uploads/file_to_attach.zip' ); // Direct link to a file you want to attach | |
wp_mail( $candidate_email, 'Your Application on ' . get_bloginfo( 'name' ), $message, '', $attachments ); |
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( 'submit_resume_form_fields', 'remove_submit_resume_form_fields' ); | |
function remove_submit_resume_form_fields( $fields ) { | |
// Remove full name field | |
unset( $fields['resume_fields']['candidate_name'] ); | |
// And return the modified fields | |
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( 'wc_anti_fraud_rules', 'wc_remove_antifraud_rules'); | |
/** | |
* Remove unwanted anti-fraud rules | |
* | |
* @return array | |
*/ | |
function wc_remove_antifraud_rules( $rules ) { | |
foreach ( $rules as $key => $rule ) { |
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
<a href="http://indeed.com/rc/clk?jk=<?php echo $indeed_job->jobkey; ?>" target="_blank" onmousedown="<?php echo $indeed_job->onmousedown; ?>"> |
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
http://indeed.com/rc/clk?jk=<?php echo $indeed_job->jobkey; ?> |
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
.recipe-hero article.recipe .recipe-single-ingredients ul.ingredients-list li.ingredients-item .amount { | |
direction: rtl; | |
} |
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( 'submit_resume_form_save_resume_data', 'custom_submit_resume_form_save_resume_data', 10, 5 ); | |
function custom_submit_resume_form_save_resume_data( $data, $post_title, $post_content, $status, $values ) { | |
// Title | |
$data['post_name'] = sanitize_title( $post_title ); | |
// Category | |
$term = get_term( $values['resume_fields']['resume_category'], 'resume_category' ); | |
$data['post_name'] .= '-' . sanitize_title( $term->name ); |
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( 'submit_resume_form_save_resume_data', 'custom_submit_resume_form_save_resume_data', 10, 5 ); | |
function custom_submit_resume_form_save_resume_data( $data, $post_title, $post_content, $status, $values ) { | |
$term = get_term( $values['resume_fields']['resume_category'][0], 'resume_category' ); | |
$data['post_name'] = sanitize_title( $term->name ); | |
// This line appends the location of the user | |
$data['post_name'] .= '-' . sanitize_title( $values['resume_fields']['candidate_location'] ); | |
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( 'submit_resume_form_save_resume_data', 'custom_submit_resume_form_save_resume_data', 10, 5 ); | |
function custom_submit_resume_form_save_resume_data( $data, $post_title, $post_content, $status, $values ) { | |
// No random prefix - just use post title as the permalink/slug | |
$data['post_name'] = sanitize_title( $post_title ); | |
// This line appends the location of the user | |
$data['post_name'] .= '-' . sanitize_title( $values['resume_fields']['candidate_location'] ); | |
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( 'recipe_hero_meta_ingredients_amount', 'rh_scoop_amount' ); | |
function rh_scoop_amount( $amounts ) { | |
$amounts['scoop'] = 'Scoop'; | |
return $amounts; | |
} |