diff --git a/public_html/wp-content/plugins/camptix/camptix.php b/public_html/wp-content/plugins/camptix/camptix.php index 4182556df5..1e93259065 100644 --- a/public_html/wp-content/plugins/camptix/camptix.php +++ b/public_html/wp-content/plugins/camptix/camptix.php @@ -67,6 +67,7 @@ function __construct() { require( dirname( __FILE__ ) . '/inc/class-camptix-addon.php' ); require( dirname( __FILE__ ) . '/inc/class-camptix-payment-method.php' ); + require( dirname( __FILE__ ) . '/inc/class-camptix-badges.php' ); if ( defined( 'WP_CLI' ) && WP_CLI ) { require_once( dirname( __FILE__ ) . '/inc/class-wp-cli-commands.php' ); @@ -2032,6 +2033,7 @@ function format_name_string( $name_string, $given_name, $surname ) { function admin_menu() { add_submenu_page( 'edit.php?post_type=tix_ticket', __( 'Tools', 'wordcamporg' ), __( 'Tools', 'wordcamporg' ), $this->caps['manage_tools'], 'camptix_tools', array( $this, 'menu_tools' ) ); add_submenu_page( 'edit.php?post_type=tix_ticket', __( 'Setup', 'wordcamporg' ), __( 'Setup', 'wordcamporg' ), $this->caps['manage_options'], 'camptix_options', array( $this, 'menu_setup' ) ); + add_submenu_page( 'edit.php?post_type=tix_ticket', __( 'Profile Badges', 'wordcamporg' ), __( 'Profile Badges', 'wordcamporg' ), $this->caps['manage_options'], 'camptix_badges', 'Camptix\Profile_Badges\menu_badges' ); remove_submenu_page( 'edit.php?post_type=tix_ticket', 'post-new.php?post_type=tix_ticket' ); } diff --git a/public_html/wp-content/plugins/camptix/inc/class-camptix-badges.php b/public_html/wp-content/plugins/camptix/inc/class-camptix-badges.php new file mode 100644 index 0000000000..dac6e3014d --- /dev/null +++ b/public_html/wp-content/plugins/camptix/inc/class-camptix-badges.php @@ -0,0 +1,80 @@ + +