Created
August 11, 2021 00:57
-
-
Save tripflex/74a1999f021361bd8271755ba53a88f4 to your computer and use it in GitHub Desktop.
Disable S&F on Single Company Jobs List Page (when using Astoundify Company Listings)
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( 'company_listings_tabs', 'smyles_company_listings_tabs_disable_sf' ); | |
function smyles_company_listings_tabs_disable_sf( $tabs ){ | |
if( isset( $tabs['jobs'] ) ){ | |
$tabs['jobs']['callback'] = 'company_listings_company_jobs_tab_no_sf'; | |
} | |
return $tabs; | |
} | |
function company_listings_company_jobs_tab_no_sf() { ?> | |
<div class="cmp-posted-jobs"> | |
<h3 class="container-title"><?php printf( __( 'Jobs at %s', 'afj-company-listings' ), get_the_title() ) ?></h3> | |
<?php echo do_shortcode( '[jobs show_sf_filters="false"]' ); ?> | |
</div> <?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment