customActionsBottom #
The customActionsBottom hook allows developers to add custom actions to the table actions shown at the bottom left corner. Please be aware that these actions are only accessible to users when pagination is set to BOTTOM or BOTH.
Parameters #
- log: reference to WP Data Access logger
- table: reference to the table instance and state
Return value #
Template literal, DOM element or jQuery object
Examples #
Example of a customActionBottom hook #
((log, table) => {
return `<div>
<button onclick="alert('My custom action')">My Custom Action</button>
</div>`
})
Example calling a function defined in the app global hook #
((log, table) => {
return myCustomAction()
})