Making WordPress.org


Ignore:
Timestamp:
01/18/2016 05:21:51 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Group Invoices and Payments under a common menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php

    r2303 r2309  
    55 */
    66class WordCamp_Budgets {
    7     const VERSION = '0.1.2';
     7    const VERSION = '0.1.3';
    88
    99    /**
     
    1111     */
    1212    public function __construct() {
     13        add_action( 'admin_menu',             array( $this, 'register_budgets_menu' )     );
    1314        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        );
    1434    }
    1535
Note: See TracChangeset for help on using the changeset viewer.