概要説明
任意のページを追加して作業効率アップ。よく使うページのリンクをまとめたり、作業指示内容をWordPress管理画面内にページを作成するカスタマイズ。htmlが組める方なら自由にレイアウト調整可能です。
作業マニュアルページとしてページを追加
functions.php
/*----------------------------------------------------
管理画面にマニュアルページを追加
----------------------------------------------------*/
if ( !function_exists( 'disable_visual_editor' ) ){
function include_page_file() {
get_template_part( 'admin/manual' );
}
function add_admin_page() {
add_menu_page( '', '作業説明ページ', 'manage_options', 'manual', 'include_page_file', 'dashicons-editor-help', 3 ); // 最後の数字はメニューの表示位置
}
add_action( 'admin_menu', 'add_admin_page' );
}
マニュアルページ用のテンプレートファイルをアップロード
/themes/使用しているテーマ/admin/manual.php
上記パスにファイルをアップロードすることでページの内容を表示できます。html,cssなど自由に記述可能です。
サンプルページ
manual.php
<h1 class="wp-heading-inline">マニュアルページ</h1>
<hr class="wp-header-end">
<div id="manual" class="manual">
サンプルテキスト
</div>
<style>
#manual {
background:#fff;
padding:30px;
}
</style>



