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
| // Because get_object_terms filter was not included until WP 4.2+ we have to use wp_get_object_terms for backwards compatibility. | |
| // Unfortunately this means taxonomies are passed like this: ( 'resume_category', 'resume_skill' ), so we have to remove the quotes, | |
| // and then use explode to convert it into an array of taxonomies. | |
| $tax_array = explode( ", ", str_replace( "'", "", $taxonomies ) ); |
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_job_form_fields', 'heynwa_custom_job_fields', 999999999999 ); | |
| function heynwa_custom_job_fields( $fields ) { | |
| if ( isset( $fields[ 'company' ][ 'products' ] ) ){ | |
| if( isset( $fields['company']['products']['options'] ) && ! empty( $fields['company']['products']['options'] ) ){ | |
| $options = $fields['company']['products']['options']; | |
| // To find out the specific ID of the "products" you can either add &debug to the end of the URL when viewing the company 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
| <?php | |
| $facebook_url = get_custom_field('fb_lbox_custom'); | |
| if( $facebook_url ) echo do_shortcode( '[easy-fb-like-box url="' . $facebook_url . '" width="370" height="430" theme="light" faces="true" header="false" posts="true" border="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
| <?php | |
| // !!! Don't add the <?php above if you're adding this to the end of your functions.php file !!! | |
| add_filter( 'field_editor_auto_populate_candidate_email', 'auto_populate_candidate_email_field' ); | |
| function auto_populate_candidate_email_field( $field_value ){ | |
| // If field value is already set (means it was pulled from user meta) then return that value | |
| // or if user is not logged in return whatever $field_value is already set as | |
| if( ! empty( $field_value ) || ! is_user_logged_in() ) return $field_value; |
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 your own function to filter the fields | |
| add_filter( 'submit_job_form_fields', 'remove_listify_submit_job_form_fields', 9999999999 ); | |
| // This is your function which takes the fields, modifies them, and returns them | |
| // You can see the fields which can be changed here: https://github.com/mikejolley/WP-Job-Manager/blob/master/includes/forms/class-wp-job-manager-form-submit-job.php | |
| function remove_listify_submit_job_form_fields( $fields ) { | |
| if( ! isset( $fields['company'] ) ) 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
| <?php | |
| $is_veteran = get_custom_field( 'is_veteran' ); | |
| // Assuming the full URL to the image is //domain.com/banners/veteran.png | |
| // if the value of the selection is "veteran" then it would form that full URL | |
| if( ! empty( $is_veteran ) ){ | |
| echo "<img src=\"//domain.com/banners/{$is_veteran}.png\"></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
| #jmfe-wrap-METAKEY { | |
| list-style: none; | |
| display: inline-block; | |
| margin-right: 8px; | |
| } | |
| #jmfe-custom-METAKEY:before { | |
| display: inline-block; | |
| font-family: Ionicons; | |
| speak: 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
| #!/usr/bin/env node | |
| /* | |
| tunlr - simple SSH tunnel management | |
| usage: tunlr [options] [command] | |
| options: | |
| -q quiet. suppress console output. |
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 | |
| /** | |
| * Get current site Theme Name | |
| * | |
| * This method will get the theme name by default from parent theme, and | |
| * if not set it will return the textdomain. | |
| * | |
| * | |
| * @since 1.3.5 |