App-Level Hooks

Posts under the "App-Level Hooks" category

global

globalThe global hook at the app level allows developers to write reusable functions that can be used in other hooks.ParametersNoneReturn valueNoneExamplesNOTES It is not possible to add event listeners to dynamically added elements. In the example above, the onclick...

onAppOpen

onAppOpenWhen an application is launched, developers can perform custom actions using the onAppClose hook.Parameters log: reference to WP Data Access logger Return valueNoneExamples

onAppClose

onAppCloseWhen an application closes, developers can perform custom actions using the onAppClose hook.Parameters log: reference to WP Data Access logger Return valueNoneExamples