Disable Selectize.js in XML Sitemap settings

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

All in One SEO uses the Selectize.js library for the Excluded Terms field under All in One SEO > XML Sitemap > Excluded Items.  This enables users to start typing a term name and the field will display any terms that match what’s being typed.  This can be very useful when a site has a lot of taxonomy terms (categories, tags, etc).

For very large sites, this feature can cause the XML Sitemap settings to load very slowly.  The filter below enables users to disable Selectize.js and fall back to a standard multi-select field:

add_filter( 'aioseop_sitemap_admin_enqueue_selectize', '__return_false' );

For instructions on how to use this code, please refer to our FAQ here.