Changeset 2309 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php
- Timestamp:
- 01/18/2016 05:21:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php
r2303 r2309 5 5 */ 6 6 class WordCamp_Budgets { 7 const VERSION = '0.1. 2';7 const VERSION = '0.1.3'; 8 8 9 9 /** … … 11 11 */ 12 12 public function __construct() { 13 add_action( 'admin_menu', array( $this, 'register_budgets_menu' ) ); 13 14 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_common_assets' ), 11 ); 15 } 16 17 /** 18 * Register the Budgets menu 19 * 20 * This is just an empty page so that a top-level menu can be created to hold the various post types and pages. 21 * 22 * @todo This may no longer be needed once the Budgets post type and Overview pages are added 23 */ 24 public function register_budgets_menu() { 25 add_menu_page( 26 __( 'WordCamp Budget', 'wordcamporg' ), 27 __( 'Budget', 'wordcamporg' ), 28 'manage_options', 29 'wordcamp-budget', 30 '__return_empty_string', 31 plugins_url( 'images/dollar-sign-icon.svg', dirname( __FILE__ ) ), 32 30 33 ); 14 34 } 15 35
Note: See TracChangeset
for help on using the changeset viewer.