Your cart is empty!
After Build
apply_filters_ref_array( 'vikrestaurants_after_build_map', bool $status, string &$html )
Fires after displaying the tables map.
Description
Trigger hook to allow the plugins to manipulate the HTML generated by the layout that renders the map.
Any string appended to the $html
argument will then be included within the document.
Parameters
- $status
-
(bool) True on success, false on failure.
- &$html
-
(string) The HTML of the map.
Example
The example below can be used to append a javascript block to start supporting new actions.
/**
* Trigger hook to allow the plugins to manipulate the HTML
* generated by the layout that renders the map.
*
* @param boolean $status True on success, false on failure.
* @param string &$html The HTML of the map.
*/
add_filter('vikrestaurants_after_build_map', function($status, &$html)
{
$html .= "<script>console.log('Here's my custom script');</script>";
}, 10, 2);
Changelog
Version | Description |
---|---|
1.0 | Introduced. |
Last Update: 2021-01-25
Helpful?