View fontconvert.c
/*
TrueType to Adafruit_GFX font converter. Derived from Peter Jakobs'
Adafruit_ftGFX fork & makefont tool, and Paul Kourany's Adafruit_mfGFX.
NOT AN ARDUINO SKETCH. This is a command-line tool for preprocessing
fonts to be used with the Adafruit_GFX Arduino library.
For UNIX-like systems. Outputs to stdout; redirect to header file, e.g.:
./fontconvert ~/Library/Fonts/FreeSans.ttf 18 > FreeSans18pt7b.h
View functions.php
<?php
add_action( 'job_feed_item', 'smyles_add_field_to_job_feed_item_rss' );
function smyles_add_field_to_job_feed_item_rss( $listing_id ){
// We set arg for `output_as` to value to prevent returning HTML markup
$company_logo2 = get_job_field( 'company_logo2', $listing_id, array( 'output_as' => 'value' ) );
if ( $company_logo2 ) {
View functions.php
<?php
add_filter( 'job_application_form_fields', 'smyles_custom_add_range_app_field' );
function smyles_custom_add_range_app_field( $fields ) {
$fields['some_range_field'] = array(
'label' => __( 'Range Example' ),
'description' => '',
'type' => 'range',
View functions.php
<?php
add_action( 'user_register', 'give_wpjmp_vis_job_user_package_on_registration' );
/**
* Give user custom Job Visibility Package on registration
*
*
* @since @@version
*
* @param $user_id
View functions.php
<?php
add_action( 'user_register', 'give_wpjmp_vis_job_user_package_on_registration' );
add_action( 'user_register', 'give_wpjmp_vis_resume_user_package_on_registration' );
/**
* Give user custom Job Visibility Package on registration
*
*
* @since @@version
*
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
// where you need to replace METAKEY with the actual meta key you want to filter the output for
// This example is used for the "job_external_rss_feed" meta key
add_filter( 'field_editor_output_as_value_job_external_rss_feed', 'smyles_output_rss_feed_from_field_value' );
// It is STRONGLY recommended that you set this field type to an HTML5 URL field, to force validation of the URL
View functions.php
<?php
add_filter( 'job_manager_packages_form_user_package_add_post_redirect', 'smyles_click_contact_btn_after_select_contact_pkg', 10, 5 );
add_action( 'single_resume_start', 'smyles_check_click_contact_btn' );
/**
* Add cookie after user selects own package to contact resume
*
* This method will be called when a user selects a specific contact package to use to contact a resume, and it will
* set a cookie that will be read when the page reloads/redirects, and will automatically click the contact button.
View job-submit.php
<?php
/**
* Content for job submission (`[submit_job_form]`) shortcode.
*
* This template can be overridden by copying it to yourtheme/job_manager/job-submit.php.
*
* @see https://wpjobmanager.com/document/template-overrides/
* @author Automattic
* @package WP Job Manager
* @category Template
View functions.php
<?php
add_filter( 'job_manager_visibility_admin_job_permalink_max_slug_chars', 'smyles_custom_permalink_max_length', 10, 4 );
add_filter( 'job_manager_visibility_job_permalink_max_slug_chars', 'smyles_custom_permalink_max_length', 10, 4 );
// Un-comment filter below to set custom max length on resume as well
//add_filter( 'job_manager_visibility_admin_resume_permalink_max_slug_chars', 'smyles_custom_permalink_max_length', 10, 4 );
//add_filter( 'job_manager_visibility_resume_permalink_max_slug_chars', 'smyles_custom_permalink_max_length', 10, 4 );
function smyles_custom_permalink_max_length( $length, $meta_key, $field_value, $structure ){
View functions.php
<?php
//
// CUSTOM FILTER TO ADD COMMA AFTER TAXONOMY OUTPUT FOR FIELD EDITOR
//
//
add_filter( 'field_editor_output_no_wrap_after', 'smyles_output_csv_for_job_category', 10, 6 );
function smyles_output_csv_for_job_category( $separator, $field_slug, $job_id, $field_values, $args, $single_value ){