Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created August 11, 2021 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripflex/74a1999f021361bd8271755ba53a88f4 to your computer and use it in GitHub Desktop.
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)
<?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