| 1 | <?php |
||
| 21 | class Wordlift_WpRocket_Adapter { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Create a {@link Wordlift_WpRocket_Adapter} instance. |
||
| 25 | * |
||
| 26 | * @since 3.19.4 |
||
| 27 | */ |
||
| 28 | public function __construct() { |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Hook to `rocket_exclude_defer_js` filter. |
||
| 37 | * |
||
| 38 | * @since 3.20.0 hook to `rocket_exclude_js`. |
||
| 39 | * @since 3.19.4 |
||
| 40 | * |
||
| 41 | * @param array $js_files The preset excluded files. |
||
| 42 | * |
||
| 43 | * @return array The updated excluded files array. |
||
| 44 | */ |
||
| 45 | public function exclude_js( $js_files = array() ) { |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Filters inline JS excluded from being combined |
||
| 55 | * |
||
| 56 | * @link https://github.com/insideout10/wordlift-plugin/issues/868 |
||
| 57 | * |
||
| 58 | * @since 3.20.0 |
||
| 59 | * |
||
| 60 | * @param array $pattern Patterns to match. |
||
| 61 | * |
||
| 62 | * @return array Patterns to match. |
||
| 63 | */ |
||
| 64 | public function excluded_inline_js_content( $pattern = array() ) { |
||
| 70 | |||
| 71 | } |
||
| 72 |