Completed
Push — add/amp-pwa-experiment ( e463f7...88c8e7 )
by
unknown
11:10
created

pwa.php ➔ pwa_loaded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Module Name: Progressive Web Apps
5
 * Module Description: Enable your web site to be added to mobile home screens and cached on slow networks
6
 * Sort Order: 23
7
 * Recommendation Order: 13
8
 * First Introduced: 5.1
9
 * Requires Connection: No
10
 * Auto Activate: No
11
 * Module Tags: Appearance, Mobile, Recommended
12
 * Feature: Appearance
13
 * Additional Search Queries: mobile, theme, pwa
14
 */
15
16
function jetpack_load_pwa() {
17
	include dirname( __FILE__ ) . "/pwa/pwa.php";
18
}
19
20
add_action( 'jetpack_modules_loaded', 'pwa_loaded' );
21
22
function pwa_loaded() {
23
	Jetpack::enable_module_configurable( __FILE__ );
24
	// Jetpack::module_configuration_load( __FILE__, 'amp_configuration_load' );
25
	// Jetpack::module_configuration_screen( __FILE__, 'amp_configuration_screen' );
26
}
27
28
jetpack_load_pwa();
29