_includes(); } /** * Include additional files. */ private function _includes() { require_once( SUKI_INCLUDES_DIR . '/admin/class-suki-admin-fields.php' ); // Only include metabox on post add/edit page and term add/edit page. global $pagenow; if ( in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit-tags.php', 'term.php' ) ) ) { require_once( SUKI_INCLUDES_DIR . '/admin/class-suki-admin-metabox-page-settings.php' ); } } /** * ==================================================== * Hook functions * ==================================================== */ /** * Add admin submenu page: Appearance > Suki. */ public function register_admin_menu() { add_theme_page( suki_get_theme_info( 'name' ), suki_get_theme_info( 'name' ), 'edit_theme_options', 'suki', array( $this, 'render_admin_page' ) ); /** * Hook: suki/admin/menu */ do_action( 'suki/admin/menu' ); } /** * Add admin notice to import data like screenshot. */ public function add_theme_notice() { // Abort if we are on Child Theme. if ( is_child_theme() ) { return; } global $hook_suffix; if ( 'themes.php' == $hook_suffix ) : ?>
' . esc_html__( 'here', 'suki' ) . '' ); ?>
' . esc_html__( 'our website', 'suki' ) . '' ); ?>