Filter: RCB/Experimental/OptimizedWpLocalizeScript

apply_filters( 'RCB/Experimental/OptimizedWpLocalizeScript', $useOptimizedWpLocalizeScript ) → {boolean}

If you return true, localization uses bucket-backed resource groups:

  • Slim blocking inline bootstrap on the banner handle
  • Remaining payload in deferred resource groups under the anonymous uploads bucket (others last)
  • Falls back to anonymous_localize_script when that write cannot be guaranteed
Parameters:
Name Type Description
$useOptimizedWpLocalizeScript boolean
Since:
  • 5.2.10
Returns:
Type
boolean