PluginProbe
WP Ultimate Post Grid / 4.1.1
WP Ultimate Post Grid v4.1.1
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / includes / admin / menu / class-wpupg-admin-menu-addons.php

class-wpupg-admin-menu-addons.php in WP Ultimate Post Grid 4.1.1, at includes/admin/menu/class-wpupg-admin-menu-addons.php

51 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Show addons in the backend menu.
4 *
5 * @link https://bootstrapped.ventures
6 * @since 3.0.0
7 *
8 * @package WP_Ultimate_Post_Grid
9 * @subpackage WP_Ultimate_Post_Grid/includes/admin
10 */
11
12 /**
13 * Show addons in the backend menu.
14 *
15 * @since 3.0.0
16 * @package WP_Ultimate_Post_Grid
17 * @subpackage WP_Ultimate_Post_Grid/includes/admin
18 * @author Brecht Vandersmissen <brecht@bootstrapped.ventures>
19 */
20 class WPUPG_Admin_Menu_Addons {
21
22 /**
23 * Register actions and filters.
24 *
25 * @since 3.0.0
26 */
27 public static function init() {
28 add_action( 'admin_menu', array( __CLASS__, 'add_submenu_page' ), 99 );
29 }
30
31 /**
32 * Add the FAQ & Support submenu to the WPUPG menu.
33 *
34 * @since 3.0.0
35 */
36 public static function add_submenu_page() {
37 add_submenu_page( 'wpultimatepostgrid', __( 'Upgrade WPUPG', 'wp-ultimate-post-grid' ), __( 'Upgrade WPUPG', 'wp-ultimate-post-grid' ), 'manage_options', 'wpupg_addons', array( __CLASS__, 'page_template' ) );
38 }
39
40 /**
41 * Get the template for this submenu.
42 *
43 * @since 3.0.0
44 */
45 public static function page_template() {
46 require_once( WPUPG_DIR . 'templates/admin/menu/addons.php' );
47 }
48 }
49
50 WPUPG_Admin_Menu_Addons::init();
51