Marius on "[Plugin: Simple Job Board] exclude locations hook"

ساخت وبلاگ

hy,

i use this function to exclude locations.
and i target your hook sjb_job_location_filter_args

function exclude_jobs_locations_uk($args){ $exclude_tree = "40,55,60"; $args["exclude_tree"] = $exclude_tree; $exclude = "58"; $args["exclude"] = $exclude; retu $args;
} add_filter('sjb_job_location_filter_args', 'exclude_jobs_locations_uk');

everthing works fine. but i want to use only on some pages.

i have try to use:

function exclude_jobs_locations_uk($args){ $exclude_tree = "40,55,60"; $args["exclude_tree"] = $exclude_tree; $exclude = "58"; $args["exclude"] = $exclude; retu $args;
}
if (!is_page_template('jobs-uk.php')) add_filter('sjb_job_location_filter_args', 'exclude_jobs_locations_uk');

but not working, also i have try with:

is_page( );"
function exclude_jobs_locations_uk($args){ $exclude_tree = "40,55,60"; $args["exclude_tree"] = $exclude_tree; $exclude = "58"; $args["exclude"] = $exclude; retu $args;
}
if( is_page( 2094 ) ) { add_filter("sjb_job_location_filter_args","exclude_jobs_locations_uk");
}

still not working,
i'm not good with code, maybe you can help to use this for only one page, or page template, because when i target your hook not working for a single page.

thank you

https://wordpress.org/plugins/simple-job-board/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 74 تاريخ : دوشنبه 23 فروردين 1395 ساعت: 22:46