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
/** Code goes in theme functions.php **/ | |
add_filter( 'job_manager_bookmark_form_login_url', 'custom_job_manager_bookmark_form_login_url' ); | |
function custom_job_manager_bookmark_form_login_url() { | |
return 'http://someurl.com'; | |
} |
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_manager_get_dashboard_jobs_args', 'hide_expired_job_manager_get_dashboard_jobs_args' ); | |
function hide_expired_job_manager_get_dashboard_jobs_args( $args ) { | |
$args['post_status'] = array( 'publish', 'pending' ); | |
return $args; | |
} |
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 $post; | |
if ( current_user_can( 'manage_options' ) && 'resume' === get_post_type( $post->ID ) ) { | |
$public_link = get_resume_share_link( $post->ID ); | |
echo '<a href="' . $public_link . '">Share Link</a>'; | |
} | |
?> |
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
/** | |
* Return an array of fields which will repeat (have multiple rows) | |
* | |
* Subfields should be named group_fieldname[] | |
* | |
* @return array | |
*/ | |
function get_custom_repeated_field_fields() { | |
return array( | |
'field1' => array( |
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( 'init', 'move_xing_message' ); | |
function move_xing_message() { | |
if ( has_action( 'job_content_start', array( $GLOBALS['wp-job-manager-apply-with-xing'], 'apply_result' ) ) { | |
remove_action( 'job_content_start', array( $GLOBALS['wp-job-manager-apply-with-xing'], 'apply_result' ) ); | |
add_action( 'SOME_OTHER_HOOK', array( $GLOBALS['wp-job-manager-apply-with-xing'], 'apply_result' ) ); | |
} | |
} |
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( 'resume_manager_user_can_download_resume_file', 'custom_resume_manager_user_can_download_resume_file' ); | |
function custom_resume_manager_user_can_download_resume_file( $can_download ) { | |
$can_download = current_user_can( 'employer' ); | |
return $can_download; | |
} |
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_hidden_order_itemmeta', 'hide_job_id_from_order_itemmeta' ); | |
function hide_job_id_from_order_itemmeta( $hidden ) { | |
$hidden[] = '_job_id'; | |
return $hidden; | |
} |
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_manager_locate_template', 'custom_field_job_manager_locate_template', 10, 3 ); | |
function custom_field_job_manager_locate_template( $template, $template_name, $template_path ) { | |
if ( 'your-template-name' === $template_name ) { | |
return 'path-to-your-field'; | |
} | |
return $template; | |
} |
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( 'admin_enqueue_scripts', 'unhook_jm_jquery_ui', 20 ); | |
function unhook_jm_jquery_ui() { | |
wp_dequeue_style( 'jquery-ui' ); | |
wp_dequeue_style( 'jquery-ui-style' ); | |
} |
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
/** Code goes in theme functions.php **/ | |
add_filter( 'job_manager_job_dashboard_login_url', 'custom_job_manager_job_dashboard_login_url' ); | |
function custom_job_manager_job_dashboard_login_url() { | |
return 'http://someurl.com'; | |
} |