View functions.php
<?php
add_shortcode( 'wpjmfe_ap_twitter_feed', 'smyles_custom_ap_twitter_feed' );
function smyles_custom_ap_twitter_feed( $atts ) {
// Empty output by default
$output = '';
// This should be the actual shortcode to call
$actual_shortcode = 'ap-twitter-feed-pro';
View functions.php
<?php
// ^ there should only be one of these at the top of your child theme's functions.php file
add_filter( 'job_manager_default_company_logo', 'smyles_custom_job_manager_logo' );
function smyles_custom_job_manager_logo( $logo_url ){
// Change the value below to match the filename of the custom logo you want to use
// Place the file in a /images/ directory in your child theme's root directory.
// The example provided assumes "/images/custom_logo.png" exists in your child theme
View functions.php
<?php
add_filter( 'submit_job_form_show_signin', '__return_false' );
View functions.php
<?php
add_filter( 'job_manager_field_editor_custom_field_output_as_show_colon', 'smyles_disable_colon_output', 10, 5 );
function smyles_disable_colon_output( $label_show_colon, $meta_key, $value, $args, $listing_id ){
// Uncomment the code below (remove //) to disable label for specific meta key
// if( $meta_key === 'some_meta_key' ){
// return false;
// }
View content-email_job_listing.php
<?php
global $post;
$type = get_the_job_type();
$location = get_the_job_location();
$company = get_the_company_name();
// The arguments after 'job_listing_category' is "before" then "separator" then "after"
$job_categories = get_the_term_list( $post->ID, 'job_listing_category', '', ', ', '' );
echo "\n";
View integration.php
<?php
// THIS IS JUST A SMALL UPDATE YOU NEED TO MAKE IN A FILE:
// JUST READ COMMENTS BELOW AND MAKE MINOR UPDATE YOURSELF
// EDIT THE FILE LOCATED AT /wp-content/plugins/wp-job-manager-field-editor/classes/integration.php
// and on LINE 328 inside the 'locate_template' function you will find this block of code:
switch ( $template_name ) {
case 'form-fields/term-checklist-field.php':
wp_enqueue_script( 'jmfe-term-checklist-field' );
View functions.php
<?php
// ^ the <?php above should only be in your functions.php file ONCE, at the top
// The filter is field_editor_output_as_value_METAKEY
// Below this example assumes the meta key is "company_instagram"
add_filter( 'field_editor_output_as_value_company_instagram', 'smyles_add_instagram_url_to_field_value', 10, 4 );
View functions.php
<?php
// ^ there should only be one of these at the top of your child theme's functions.php file
//
// Here's the filter call, the gallery arguments are passed to the core WordPress gallery_shortcode() function
// @see https://developer.wordpress.org/reference/functions/gallery_shortcode/
//
//$gallery_args = apply_filters( 'job_manager_field_editor_output_gallery_args',
// array(
// 'ids' => implode( ',', $gallery_ids ),
// 'link' => 'file', // This should be left at file, which is required for lightbox to work correctly
View functions.php
<?php
// ^ this should only be at the top of your child theme's functions.php ONCE, do not add if it's already there
add_filter( 'field_editor_the_custom_field_output_as_false_values', 'smyles_set_zero_as_false_value', 10, 5 );
function smyles_set_zero_as_false_value( $false_vals, $meta_key, $listing_id, $value, $args ) {
if ( ! in_array( '0', $false_vals, true ) ){
$false_vals[] = '0';
}
View functions.php
<?php
add_filter( 'field_editor_output_field_as_link_target', 'smyles_custom_output_link_target', 10, 5 );
function smyles_custom_output_link_target( $target, $field_value, $args, $meta_key, $listing_id ){
if( $meta_key === 'my_meta_key' ){
// Change target to '_self' for specified meta key above
$target = '_self';
}