Clanbite Since 1.5.0

clanbite_enqueue_toasts(  ): void

Load the toast library on this page.

Call it before the page prints scripts (for example from a block's render.php or your wp_enqueue_scripts callback), or list the handle clanbite-toasts as a dependency of your own script. Both do the same thing. The script exposes window.clanbite.toasts.show(); see README, "Toasts".

Returns

void

Defined in inc/toasts.php

Changelog

VersionDescription
1.5.0Introduced.