English (United Kingdom)
Knowledge Base  >  Vik Restaurants  >  Hooks  >  Core  >  After Dispatch

do_action( 'vikrestaurants_after_dispatch' )

Fires after dispatching the plugin request.


Description

This hook will be triggered every time the plugin completes the dispatching of the request.

It is useful to include web resources (CSS and JS) or to restore the WordPress environment.

NOTE: in case the controller terminates the process (exit or die), this hook won't be fired.


Example

/**
 * Fires after the controller of VikRestaurants is dispatched.
 * Useful to include web resources (CSS and JS).
 */
add_action('vikrestaurants_after_dispatch', function()
{
    /**
     * @todo do stuff here
     */
});

Changelog

Version Description
1.0 Introduced.
Last Update: 2021-01-26
Helpful?
This site uses cookies. By continuing to browse you accept their use. Further information