/** * Constructor */ public function __construct() { parent::__construct(); $this->hookName = 'wp_enqueue_scripts'; $this->media = 'all'; }
/** * Returns only not loaded assets * @param \SupsysticTables_Ui_Asset $asset * @return bool */ public function filterAssets(SupsysticTables_Ui_Asset $asset) { return !$asset->isLoaded() && 'wp_enqueue_scripts' === $asset->getHookName(); }