Changeset 2921 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-site-cloner/wordcamp-site-cloner.php
- Timestamp:
- 04/08/2016 10:56:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-site-cloner/wordcamp-site-cloner.php
r2914 r2921 15 15 16 16 // todo if Jetpack_Custom_CSS:get_css is callable, register these, otherwise fatal errors 17 17 18 add_action( 'plugins_loaded', __NAMESPACE__ . '\get_wordcamp_sites' ); 18 19 add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\register_scripts' ); 20 add_action( 'admin_menu', __NAMESPACE__ . '\add_submenu_page' ); 19 21 add_action( 'customize_register', __NAMESPACE__ . '\register_customizer_components' ); 20 22 … … 36 38 1, 37 39 true 40 ); 41 } 42 43 /** 44 * Add a submenu page 45 * 46 * This helps organizers to realize that this tool exists, because they otherwise wouldn't see it unless 47 * they opened the Customizer. 48 */ 49 function add_submenu_page() { 50 \add_submenu_page( 51 'themes.php', 52 __( 'Clone Another WordCamp', 'wordcamporg' ), 53 __( 'Clone Another WordCamp', 'wordcamporg' ), 54 'switch_themes', 55 'customize.php?wordcamp-site-cloner' 38 56 ); 39 57 }
Note: See TracChangeset
for help on using the changeset viewer.