Skip to content
View content-single-job_listing.php
// You should only use this code below if the field is an "admin only" field.
// Using a field that is not admin only will allow any user to execute shortcodes from your site, and can cause security issues
$list_related_products = get_custom_field( 'list_related_products' );
echo do_shortcode( $list_related_products );
View functions.php
// Add filter to call our custom function when setting up dropdown of output locations
add_filter( 'field_editor_output_options', 'my_custom_output_options', 10, 2 );
* Add Custom Auto Output Locations for WPJM
* This custom function will add to the end of an array, a new set of output locations
* that will be visible in the WP Job Manager Field Editor auto output dropdown.
View functions.php
add_filter( 'job_manager_field_editor_date_args', 'my_custom_date_args' );
function my_custom_date_args( $args ){
$args['maxDate'] = '+30D';
return $args;
View functions.php
add_filter( 'submit_job_steps', 'my_custom_remove_preview_step' );
function my_custom_remove_preview_step( $steps ){
if( isset( $steps['preview'] ) ) unset( $steps['preview'] );
return $steps;
View term-multiselect.min.js
jQuery( '.job-manager-category-dropdown' ).chosen({ search_contains: true, max_selected_options: 5 });
View functions.php
// There should only be one <?php at the top of your file, do not add this if it already exists
function custom_N01_Price_action( $field, $key ) {
echo do_shortcode('[table id=1]');
// Here the meta key is N01_Price, so the action would be job_manager_field_actionhook_N01_Price
add_action( 'job_manager_field_actionhook_N01_Price', 'custom_N01_Price_action', 10, 2 );
View get_theme_name.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
View tunlr
#!/usr/bin/env node
tunlr - simple SSH tunnel management
usage: tunlr [options] [command]
-q quiet. suppress console output.
View style.css
#jmfe-wrap-METAKEY {
list-style: none;
display: inline-block;
margin-right: 8px;
#jmfe-custom-METAKEY:before {
display: inline-block;
font-family: Ionicons;
speak: none;
View remove-span-tags-from-html.php
$content = '<span style="font-family: helvetica; font-size: 12pt;"><div>asdf</div><span>TWO</span>Business owners are fearful of leading. They would rather follow the leader than embrace a bold move that challenges their confidence. </span>';
$dom = new DOMDocument();
// Use LIBXML for preventing output of doctype, <html>, and <body> tags
$xpath = new DOMXPath($dom);
Something went wrong with that request. Please try again.