K
K
Knowledge Base - Ajax Search Pro for WordPress
Buy Ajax Search Pro!
Documentation
Get Support
Search…
Knowledge Base
Safe Coding Guideline
Hooks
Filters
Query & Output
Search Results
CSS & JS
asp_load_js
asp_load_css
asp_load_css_js
Index Table Related
Templating
Constants
Frontend Filters
Taxonomy Filters
Frontend filters API
Tips & Miscellaneous
Tutorials
Post Types
Taxonomy Terms
WooCommerce
Compatibility
Other
Other
ASP_Query
Building a custom REST API
Javascript API
Javascript Hooks
Changelog
Powered By
GitBook
asp_load_js
Hook to prevent the plugin javascript files loading
1
apply_filters
(
'asp_load_js'
,
$stop
);
Copied!
Parameters
$stop
- when true, the JS files are not loaded
1
add_filter
(
'asp_load_js'
,
'asp_stop_load_js'
,
10
,
1
);
2
function
asp_stop_load_js
(
$stop
)
{
3
if
(
is_archive
()
)
4
return
true
;
5
return
false
;
6
}
Copied!
Previous
CSS & JS
Next
asp_load_css
Last modified
1yr ago
Copy link
Contents
Parameters