PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.1.0
GiveWP – Donation Plugin and Fundraising Platform v4.1.0
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / Helpers / EnqueueScript.php

EnqueueScript.php in GiveWP – Donation Plugin and Fundraising Platform 4.1.0, at src/Helpers/EnqueueScript.php

33 lines 745 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Helpers;
4
5 /**
6 * This class use to register script.
7 * This class internally uses asset information to set script dependencies and version generated by @wordpress/dependency-extraction-webpack-plugin package.
8 * It also handles script translation registration.
9 *
10 * @since 2.19.6
11 */
12 class EnqueueScript
13 {
14 /**
15 * @since 2.19.6
16 *
17 * @param string $scriptId
18 * @param string $scriptPath
19 *
20 * @return \Give\Framework\EnqueueScript
21 */
22 public static function make($scriptId, $scriptPath)
23 {
24 return new \Give\Framework\EnqueueScript(
25 $scriptId,
26 $scriptPath,
27 GIVE_PLUGIN_DIR,
28 GIVE_PLUGIN_URL,
29 'give'
30 );
31 }
32 }
33