View class-emails.php
<?php
// edit the file located at wp-content/plugins/wp-job-manager-emails/includes/class-emails.php
// on line #107 you will see the the code that replaces the content shortcodes:
$this->content = $shortcodes->replace( $this->template->post_content );
// Right below that, add this line of code:
$this->reply_to = $shortcodes->replace( $this->template->reply_to );
View functions.php
<?php
// ^ only ONE of these should be at the top of child theme's functions.php file
add_shortcode( 'smyles_post_author_name', 'smyles_custom_output_post_author_name' );
function smyles_custom_output_post_author_name( $args = array(), $content = '' ){
$post_author = get_post_field( 'post_author', get_the_ID() );
if( empty( $post_author ) ) return '';
View functions.php
<?php
// ^ only ONE of these should be at the top of child theme's functions.php file
add_shortcode( 'smyles_post_author_name', 'smyles_custom_output_post_author_name' );
function smyles_custom_output_post_author_name( $args = array(), $content = '' ){
$post_author = get_post_field( 'post_author', get_the_ID() );
if( empty( $post_author ) ) return '';
View functions.php
<?php
// Add this code to your functions.php file (omit the <?php at the top), or use the Code Snippets plugin (include everything)
add_filter( 'job_manager_field_editor_phone_args', 'smyles_custom_phone_args_only_au' );
function smyles_custom_phone_args_only_au( $args ){
// Other available arguments, see GitHub for details
// https://github.com/jackocnr/intl-tel-input/tree/8a2364bc0459fce934d7cf04a82823db63e7944b
//
$args['nationalMode'] = 'false';
$args['onlyCountries'] = array( 'au' );
View functions.php
<?php
// ^ this should only exist once at the top of child theme's functions.php file
// ADD THIS CODE TO YOUR CHILD THEME FUNCTIONS.PHP FILE OR USING THE CODE SNIPPETS PLUGIN
// MAKE SURE YOU UPDATE THE FIELDS BELOW, SPECICIALLY 'some_taxonomy_metakey' TO MATCH THE META KEY CONFIGURED IN FIELD EDITOR
// AND 'some_term_meta_key' TO MATCH THE META KEY SETUP IN PODS OR WHEN CREATING THE TAXONOMY META FIELD
add_filter( 'field_editor_get_custom_field_listing_meta', 'smyles_custom_taxonomy_meta_output', 10, 4 );
function smyles_custom_taxonomy_meta_output( $values, $meta_key, $listing_id, $args ){
View block-to-find-in-functions.php
<?php
// ^ DISREGARD THIS, ONLY FOR SYNTAX HIGHLIGHTING ON GITHUB
// THIS IS ONLY REQUIRED FOR WP JOB MANAGER FIELD EDITOR VERSION 1.7.10 OR OLDER, 1.7.11+ THIS IS ALREADY INTEGRATED
// EDIT THE FILE LOCATED AT:
// wp-content/plugins/wp-job-manager-field-editor/includes/functions.php
// ON/AROUND LINE NUMBER 539, YOU SHOULD SEE CODE THAT LOOKS EXACTLY LIKE THIS:
View functions.php
<?php
// ^ there should ONLY be one of these at the top of child theme's functions.php file or use the Code Snippets plugin
// THIS IS JUST ANOTHER EXAMPLE USING THE CODE BELOW TO ONLY LOAD ON THE SUBMIT/EDIT LISTING PAGE IF YOU DONT KNOW
// HOW TO ADD YOUR OWN CUSTOM JAVASCRIPT
// THIS EXAMPLE IS FOR A FIELD WITH THE META KEY OF "candidate_current_title" ... duplicate that line below to add support
// for additional fields
add_action( 'submit_job_form_start', 'my_custom_jquery_init_chosen_on_selects' );
function my_custom_jquery_init_chosen_on_selects(){
View class-job.php
<?php
// REPLACE THE FUNCTION init_shortcodes() in the file located at:
// wp-content/plugins/wp-job-manager-emails/includes/shortcodes/class-job.php
// STARTING ON LINE #39, WITH THE UPDATED FUNCTION CODE BELOW:
// YOU WILL NOTICE THE ONLY THING THAT IS DIFFERENT IS THE ADDITION OF THE "featured" SHORTCODE
// DO NOT COPY ANYTHING ABOVE THIS LINE, ONLY THE CODE BELOW:
View functions.php
<?php
add_action( 'save_post_job_listing', 'smyles_incremental_job_listing_field', 99, 3 );
function smyles_incremental_job_listing_field( $post_ID, $post, $update ){
// Field you created in Field Editor to store the value in
$meta_key = 'smyles_id';
$start_at = 0;
View functions.php
<?php
// ^ the <?php above should only be in your functions.php file ONCE, at the top
// Because sanitation strips out script tags, if you want to output a custom script tag, you can use this filter to only have to specify the URL in a field
// The filter is field_editor_output_as_value_METAKEY
// Below this example assumes the meta key is "some_script_url"
add_filter( 'field_editor_output_as_value_some_script_url', 'smyles_output_some_custom_script_tag', 10, 4 );