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( 'user_register', 'give_wcpl_user_package_on_registration' ); | |
function give_wcpl_user_package_on_registration( $user_id ) { | |
global $wpdb; | |
if ( wpjm_check_user_role( 'employer', $user_id ) ) { | |
$wpdb->insert( | |
"{$wpdb->prefix}wcpl_user_packages", |
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
/** | |
* Clears WC Cart on Page Load | |
* (Only when not on cart/checkout page) | |
*/ | |
add_action( 'wp_head', 'bryce_clear_cart' ); | |
function bryce_clear_cart() { | |
if ( wc_get_page_id( 'cart' ) == get_the_ID() || wc_get_page_id( 'checkout' ) == get_the_ID() ) { | |
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 | |
global $wp_post_types; | |
switch ( $job->post_status ) : | |
case 'publish' : | |
printf( __( '%s listed successfully. To view your listing <a href="%s">click here</a>.', 'wp-job-manager' ), $wp_post_types['job_listing']->labels->singular_name, get_permalink( $job->ID ) ); | |
break; | |
case 'pending' : | |
printf( __( '%s submitted successfully. Your listing will be visible once approved.', 'wp-job-manager' ), $wp_post_types['job_listing']->labels->singular_name, get_permalink( $job->ID ) ); | |
break; |
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
.business-glance .location-address { display: none; } | |
.business-glance img { display: none; } | |
.business-glance .location-hours { display: none; } |
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
<div class="business-glance"> | |
[opening_hours] | |
</div> |
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 echo get_post_meta( $post->ID, '_candidate_color', 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
// Add field to admin | |
add_filter( 'resume_manager_resume_fields', 'wpjms_admin_resume_form_fields' ); | |
function wpjms_admin_resume_form_fields( $fields ) { | |
$fields['_candidate_color'] = array( | |
'label' => __( 'Favourite Color', 'job_manager' ), | |
'type' => 'text', | |
'placeholder' => __( 'Blue', 'job_manager' ), | |
'description' => '', | |
); |
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
/** | |
* Filter email message for submitted resumes | |
*/ | |
add_filter( 'apply_with_resume_email_message', 'bryce_wpjm_resume_email_message' ); | |
function bryce_wpjm_resume_email_message( $messages ) { | |
$messages['extra'] = 'Write some custom text or HTMl etc. here!'; | |
return $messages; | |
} |
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
'resume_category' => array( | |
'label' => __( 'Resume category', 'wp-job-manager-resumes' ), | |
'type' => 'term-multiselect', | |
'taxonomy' => 'resume_category', | |
'required' => true, | |
'placeholder' => '', | |
'priority' => 7 | |
), |
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 ) { | |
// Unset any of the fields you'd like to remove - copy and repeat as needed | |
unset( $fields['resume_fields']['candidate_title'] ); | |
// And return the modified fields | |
return $fields; | |