Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Scripts that is used within the plugin is located in the ResursBank\Module\Data class.

VariableScript description
$jsLoaders
Default loaders that is usually added to the user sections for WordPress.
$jsLoadersCheckout
Scripts that is only loaded in the head, at checkout section.
$jsLoadersAdmin
Script loaded in the admin section.
$jsDependencies

Every script that has dependencies in other scripts should be added here. For example if some of the basic scripts needs jquery it is added like this:

private static $jsDependencies = ['resursbank' => ['jquery']];
  • No labels