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 //remove in an existing file | |
add_filter( 'job_manager_geolocation_endpoint', 'bk_set_geocode_lang' ); | |
function bk_set_geocode_lang( $endpont ){ | |
$endpoint = add_query_arg( 'language', 'de', $endpoint ); | |
return $endpoint; | |
} |
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 // remove in an existing file | |
add_filter( 'jetpack_sharing_pinterest_widget_type', 'bk_jetpack_pinterest_widget' ); | |
function bk_jetpack_pinterest_widget( $widget ){ | |
return 'buttonBookmark'; | |
} |
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 // remove in an existing file | |
add_filter( 'jetpack_google_maps_api_key', 'bk_add_key' ); | |
function bk_add_key( $key ){ | |
return 'ADD IN YOUR KEY HERE'; | |
} |
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 this line. | |
add_filter( 'jetpack_photon_pre_args', 'bk_always_high_quality' ); | |
function bk_always_high_quality( $args ){ | |
$args['quality'] = 100; | |
return $args; | |
} |
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 //remove in an existing file | |
add_filter( 'job_manager_bookmark_form_login_url', 'set_custom_login_for_bookmarks_only'); | |
function set_custom_login_for_bookmarks_only( $url ){ | |
return 'http://your-custom-link-goes-here.com'; | |
} |
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 //remove in an existing file | |
add_filter( 'get_job_listings_query_args', 'bk_remove_polylang', 10, 2 ); | |
function bk_remove_polylang( $query_args, $args ){ | |
if ( is_array( $query_args ) && isset( $query_args['lang'] ) ) { | |
unset( $query_args['lang'] ); | |
} | |
return $query_args; | |
} |
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 //remove in an existing file | |
add_filter( 'the_content', 'content_page_links', 18 ); // 18 would put it just before Jetpack's sharing links at priority 19. | |
function content_page_links( $content ){ | |
$content .= wp_link_pages( array ( | |
'echo' => false, | |
)); | |
return $content; | |
} |
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 // remove from an existing file | |
add_filter( 'wp_mail_from', 'bk_change_from' ); | |
function bk_change_from( $from ){ | |
return '[email protected]'; | |
} |
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 // remove in existing file | |
add_filter( 'jetpack_open_graph_tags', 'bk_custom_og_image_logic'); | |
function bk_custom_og_image_logic( $tags ){ | |
$image_width = absint( apply_filters( 'jetpack_open_graph_image_width' , 200 ) ); | |
$image_height = absint( apply_filters( 'jetpack_open_graph_image_height', 200 ) ); | |
$args = array( | |
'from_thumbnail' => true, // Use these flags to specify which methods to use to find an image |
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_filter( 'job_manager_output_jobs_defaults', 'bk_example_default_filter', 11 ); // needs to be 11 to catch the Tags | |
function bk_example_default_filter( $atts ){ | |
$atts['show_tags'] = false; | |
$atts['show_categories'] = false; | |
if (INSERT CONDITIONAL HERE TO DETERMINE THE ROLE/USER/ETC YOU WANT ) { | |
$atts['show_tags'] = true; | |
$atts['show_categories'] = true; | |
} | |