Skip to main content

Filter: dt_ajax_requires_with_credentials

Filter whether front end ajax requests should use xhrFields credentials:true.

Front end ajax requests may require xhrFields with credentials when the front end and back end domains do not match. This filter lets themes opt in. See {@link https://vip.wordpress.com/documentation/handling-frontend-file-uploads/#handling-ajax-requests\}

Parameters​

NameTypeDescription
$boolfalse Whether front end ajax requests should use xhrFields credentials:true.

Since​

  • 1.0.0

Source​

Defined in includes/push-ui.php at line 473

Returns​

Whether front end ajax requests should use xhrFields credentials:true.

Ready to Get Started?

Distributor is a WordPress plugin that makes it easy to syndicate and reuse content across your websites — whether in a single multisite or across the web.