This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CacheOptionPerPage { | |
private static $conditional_options_context; | |
private static $alloptions_names = array(); | |
private static $alloptions_used = array(); | |
private static $current_context; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'matador_jobs_pro_jobs_xml_jobboost_segments_remap', static function ( $segments ) { | |
$segments[19] = $segments[19] + array( | |
'cccountancy', | |
'celastingadvies', | |
'consultancy finance', | |
'corporate finance', | |
'finance & control' | |
); | |
$segments[20] = $segments[20] + array( 'financieel / administratief' . 'officemanagement', 'salarisadministratie' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'matador_variable_job_taxonomies', function( $taxonomies ) { | |
$taxonomies['city'] = array( | |
'key' => 'city', | |
'single' => _x( 'City', 'Job City Singular Name.', 'matador-jobs' ), | |
'plural' => _x( 'Cities', 'Job Cities Plural Name.', 'matador-jobs' ), | |
// 'slug' => matador\Matador::setting( 'taxonomy_slug_cities' ) ?: 'matador-cities', // Add a slug in you wich to contoll slug otherwise the it will be set to matador-{slug} | |
// 'args' => array( // yu can add args to contol now the taxonomy is disaplied in the WP admin | |
// 'show_admin_column' => true, | |
// 'show_in_menu' => true, | |
// 'show_in_nav_menus' => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', function (){ | |
if( isset( $_REQUEST['count_terms'] ) ){ | |
$update_taxonomies = get_taxonomies(['object_type' => ['matador-job-listings']]); | |
foreach ($update_taxonomies as $update_taxonomy) { | |
$get_terms_args = array( | |
'taxonomy' => $update_taxonomy, | |
'fields' => 'ids', | |
'hide_empty' => false, | |
); | |
$update_terms = get_terms($get_terms_args); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'matador_application_form_args', function( $args ) { | |
$args['fields'] = matador_jobs_moveElementInArray( $args['fields'], 'mobile', array_search('phone', array_keys( $fields ) ) + 1 ); | |
return $args; | |
}, 99 ); | |
function matador_jobs_moveElementInArray($array, $toMove, $targetIndex) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mdocs_example_matador_bullhorn_import_fields( $fields ) { | |
$field_to_add = [ | |
'customText10' => [ // Name of field per Bullhorn Field Mappings (not its label) | |
'name' => 'customText10', // Set name for meta when 'saveas' is 'meta'. | |
'type' => 'string', // Specify type for sanitization, default 'type' | |
'saveas' => 'meta', // Options are 'core', 'meta', 'custom'. Default 'custom' | |
], | |
]; | |
return array_merge( $fields, $field_to_add ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Customize Matador: Set Recurrence of Scheduled Events | |
* | |
* This function sets the recurrence of the Matador WP Cron from 'hourly' | |
* to the returned value. Warning: returned value must exist in the WordPress | |
* schedules array. Default values in the WP Schedules Array are 'hourly', | |
* 'twicedaily', and 'daily'. Example function uses a non-standard schedule, | |
* which will need to be registered in a separate function. Also, Matador Software | |
* provides this method as-is and will not support sites that run schedules at fewer | |
* than once per hour. Running more regularly will risk exceeding daily rate limits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'matador_applicant_candidate_privacy_consent_object', function( $privacy ) { | |
// Description is 'textBlock1' | |
$privacy->textBlock1 = $description; // action and IP adress | |
// Purpose is 'text1' | |
$privacy->text1 = esc_html__( 'Recruiting', 'matador-jobs' ); | |
// Legal Basis is 'text2' | |
$privacy->text2 = esc_html__( 'Legal Obligation', 'matador-jobs' ); | |
// Source is 'text3' | |
$privacy->text3 = esc_html__( 'Web Response', 'matador-jobs' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* BLOCK: serverside block that changes on page tax | |
* | |
* Registering a basic block with Gutenberg. | |
* Simple block, renders and saves the same content without any interactivity. | |
*/ | |
// Import CSS. | |
import './editor.scss'; | |
import './style.scss'; |
NewerOlder