Osclass plugin js or css show only certain page

I want to show some js only item-post.php page or search.php or home page - how …?

osc_add_hook(‘ajax_przi_ajax_uploader’, ‘przi_ajax_uploader’); &

osc_add_filter(‘theme_url’, ‘przi_divert_fineuploader_enqueued’);

suppose these code adding
all pages & its not necessary, so want to restrict.

// Show only on item-post.php page or search.php or home page
if (osc_is_publish_page() || osc_is_search_page() || osc_is_home_page()) {
	// Your code here
}

You can find these helpers in oc-includes/osclass/helpers/hDefines.php.

1 Like