Skip to content
🚀 Rapid Application Development with the App Builder

wpda.button(label, callback) ​

Use wpda.button to add a button using your app style.

Scope: GLOBAL

Parameters ​

ParameterTypeDescription
labelstringButton label.
callbackfunctionYour JavaScript function.

Return Value ​

None

✨ Example ​

js
wpda.button(
	"My Button",
	(() => wpda.alert("My Alert", "Message from alert"))
)

Output ​

WP Data Access - wpda.button()