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

do_action( 'vikappointments_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 VikAppointments is dispatched.
 * Useful to include web resources (CSS and JS).
 */
add_action('vikappointments_after_dispatch', function()
{
    /**
     * @todo do stuff here
     */
});

Changelog

Version Description
1.0 Introduced.
Last Update: 2021-10-04
Helpful?