Skip to content

Add ajaxurl to JavaScript localized values#2

Open
salcode wants to merge 1 commit into
tharsheblows:masterfrom
salcode:sf/ajaxurl-not-defined-1
Open

Add ajaxurl to JavaScript localized values#2
salcode wants to merge 1 commit into
tharsheblows:masterfrom
salcode:sf/ajaxurl-not-defined-1

Conversation

@salcode

@salcode salcode commented Jan 26, 2018

Copy link
Copy Markdown

While ajaxurl is a JavaScript value available on the
backend, it is not available on the front-end.

Here we pass the URL as a localized value in PHP and modify
the JavaScript to use the localized value.

Fixes #1

While ajaxurl is a JavaScript value available on the
backend, it is not available on the front-end.

Here we pass the URL as a localized value in PHP and modify
the JavaScript to use the localized value.

Fixes #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant