PluginProbe
WP Ultimate Post Grid / 2.0
WP Ultimate Post Grid v2.0
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
← All changes | helpers/faq.php +12 -0 2.8.22.0 View file →
@@ -4,9 +4,21 @@
4 4
5 5 public function __construct()
6 6 {
7 7 // Actions
8 + add_action( 'admin_init', array( $this, 'assets' ) );
8 9 add_action( 'admin_menu', array( $this, 'faq_menu' ), 20 );
10 + }
11 +
12 + public function assets()
13 + {
14 + WPUltimatePostGrid::get()->helper( 'assets' )->add(
15 + array(
16 + 'file' => '/css/faq.css',
17 + 'admin' => true,
18 + 'page' => WPUPG_POST_TYPE . '_page_wpupg_faq',
19 + )
20 + );
9 21 }
10 22
11 23 public function faq_menu() {
12 24 add_submenu_page( 'edit.php?post_type=' . WPUPG_POST_TYPE, 'WP Ultimate Post Grid ' . __( 'FAQ', 'wp-ultimate-post-grid' ), __( 'FAQ', 'wp-ultimate-post-grid' ), 'edit_posts', 'wpupg_faq', array( $this, 'faq_page' ) );