This file contains 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 | |
add_filter( 'wpseo_metabox_priority', function() { return 'default';}); | |
?> |
This file contains 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
// https://www.itnota.com/adding-id-attribute-genesis-main-content/ | |
// | |
// Adds consideration for high level error reporting | |
// Add id="content" attributes to <main> element | |
add_filter( 'genesis_attr_content', 'my_attr_content' ); | |
function my_attr_content( $attr ) { | |
if( array_key_exists( 'id', $attr ) { |
This file contains 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
/** | |
* Authorize Matador without a Redirect URI set | |
* | |
* Recommended to use this only in development mode or while waiting for Bullhorn to set a | |
* new redirect URI for your API user. Letting Matador check the redirect URI is an essential | |
* safety check for your software. | |
*/ | |
add_filter( 'matador_variable_api_redirect_uri', '__return_false' ); |
This file contains 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
/** | |
* Matador Location Taxonomy as "State" | |
*/ | |
add_filter( 'matador_import_location_taxonomy_field', 'matador_import_location_taxonomy_field_set_state' ); | |
function matador_import_location_taxonomy_field_set_state( $field ) { | |
return 'state'; | |
} |
This file contains 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
/** | |
* Override Matador Locate Template | |
* | |
* Overrides Matador's job-single-append-apply-now.php template with a same-named file in the theme's | |
* matador-overrides folder. | |
*/ | |
add_filter( 'matador_locate_template', 'matador_locate_template_override_job-single-append-apply-now', 10, 2 ); | |
function matador_locate_template_override_job-single-append-apply-now( $template, $name ) { | |
if ( 'job-single-append-apply-now' === $name ) { | |
return get_stylesheet_dir() . '/includes/matador-overrides/job-single-append-apply-now.php'; |
This file contains 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 to functions.php or a file included in your theme. | |
function mdocs_matador_bullhorn_import_fields( $fields ) { | |
$fields = array( | |
'correlatedCustomTextBlock1' => array( | |
'type' => 'string', | |
'saveas' => 'meta', | |
'name' => 'field_name', // optional, what the field will be named in WP, defaults to array key | |
), | |
); | |
return $fields; |
This file contains 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 | |
// Shortcode in the WordPress Editor or a Page Builder | |
// name: the name of the field | |
// id: (optional) the ID of the job, if you're outside the loop | |
// before: (optional) arbitrary HTML before the field. | |
// after: (optional) arbitrary HTML after the field. | |
[matador_job_field name="employmentType" id="XX" before="some-html" after="some-html"] | |
// Matador Field Template Helper |
This file contains 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 matador_tutorial_application_fields( $fields ) { | |
$fields['firstName']['label'] = 'Label Name'; // changes the label | |
$fields['firstName']['attributes']['placeholder'] = 'Placeholder Content'; // Adds a placeholder | |
return $fields; | |
} | |
add_filter( 'matador_application_fields_structure', 'matador_tutorial_application_fields' ); |
This file contains 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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* | |
//* The Matador Team recommends you add this to a 'must-use' plugin. | |
//* See: https://matadorjobs.com/docs/developer/where-to-put-matador-modifications-code/ | |
/** | |
* Remove the job slug from the url for job taxonomy archives | |
* Changes 'yoursite.com/jobs/categories' to 'yoursite.com/categories' | |
* Use the 'URL Slugs' section of the 'Jobs' tab in Matador settings to change the job or taxonomy slug. |
OlderNewer