View functions.php
<?php
add_filter( 'field_editor_output_options', 'smyles_custom_output_locations', 20, 2 );
/**
* Add Custom Auto Output Locations
*
* This will add custom auto output locations to the modal configuration in auto
* output field configuration. All you would need to do is add the do_action( $key )
* in the template file. The $key value should be the KEY used in the array .. in the example
View functions.php
<?php
// ^ there should ONLY be one of these at the top of child theme's functions.php file
add_action( 'submit_job_form_start', 'my_custom_jquery_set_field_readonly' );
function my_custom_jquery_set_field_readonly(){
/**
* Replace HIDDENMETAKEY with the meta key of the field you want to hide/show based on checkbox
* Replace CHECKBOXMETAKEY with the meta key of the checkbox field to use
*/
echo "<script>
View functions.php
<?php
// ^ there should ONLY be one of these at the top of your functions.php file
add_filter( 'job_listing_searchable_meta_keys', 'smyles_allow_search_all_meta' );
function smyles_allow_search_all_meta( $meta_keys ) {
// Below is the default array of meta keys that will be passed
// to search. You can either add your own to the array, or return
// false to force WP Job Manager to search all meta keys
View content-job_listing.php
<li id="job_listing-<?php the_ID(); ?>" <?php jobify_listing_html_class(); ?> <?php echo apply_filters( 'jobify_listing_data', '' ); ?>>
<a href="<?php jobify_listing_permalink(); ?>" class="job_listing-clickbox"></a>
<div class="job_listing-logo">
<?php jobify_the_company_logo( 'fullsize' ); ?>
</div><div class="job_listing-about">
<div class="job_listing-position job_listing__column">
<h3 class="job_listing-title"><?php the_title(); ?></h3>
<p>
View functions.php
<?php
// Add Shortcode
function my_weather_listing_feed_handler( $atts ) {
// Attributes (value set here is default, and will be overwritten if supplied in shortcode arguments)
$atts = shortcode_atts(
array(
'night' => 'yes',
'days' => '5',
View functions.php
<?php
add_filter( 'wp_terms_checklist_args', 'smyles_check_all_taxonomies_by_default' );
function smyles_check_all_taxonomies_by_default( $args, $post_id ){
// Update YOURTAXONOMY with the taxonomy to check everything by default (ie job_category, etc)
$taxonomy_name = 'YOURTAXONOMY';
// Don't set selected categories if this call isn't for out specified taxonomy, or if there is already a value
if( $args['taxonomy'] !== $taxonomy_name || ! empty( $args['selected_cats'] ) ){
return $args;
View functions.php
// NOTE: this overrides security protection added in WP Job Manager, only use this if you know what you're doing!!
add_filter( 'job_manager_user_can_upload_file_via_ajax', '__return_true' );
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' );
function smyles_custom_phone_args( $args ){
// Other available arguments, see GitHub for details
// https://github.com/Bluefieldscom/intl-tel-input#options
//
// $args['allowExtensions'] = 'false';
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_fpdate_args', 'smyles_fpdate_no_calendar' );
function smyles_fpdate_no_calendar( $args ){
// true needs to be in quotes to handle correctly in JavaScript
$args['noCalendar'] = 'true';
View functions.php
<?php
add_filter( 'login_url', 'smyles_custom_login_url', 10, 3 );
/**
* Filters the login URL.
*
* @since 2.8.0
* @since 4.2.0 The `$force_reauth` parameter was added.
*
* @param string $login_url The login URL. Not HTML-encoded.