// ダッシュボード用 CSS
function adminmenu_css() {
// $url = bloginfo('stylesheet_directory');
echo '<link rel="stylesheet" type="text/css" href="' . get_stylesheet_directory_uri() . '/functions_inc/dashboard.css">';
}
add_action('admin_head', 'adminmenu_css');
// ダッシュボード用 HTML
function adminmenu_dashboard_widget_function() {
echo '
<ul class="adminmenu">
<li>
<a href="./post-new.php">
<div class="dashicons dashicons-edit"></div>
<p>新規投稿</p>
</a>
</li>
<li>
<a href="./edit.php">
<div class="dashicons dashicons-editor-ul"></div>
<p>記事一覧</p>
</a>
</li>
<li>
<a href="./media.php">
<div class="dashicons dashicons-format-image"></div>
<p>画像アップロード</p>
</a>
</li>
</ul>
<div class="admin-link">
<div class="item">
<h2>1Lineリンク</h2>
<ul class="adminmenu2">
<li><a href="http://52.197.90.227/" target="_blank">Website</a></li>
<li><a href="https://www.facebook.com/株式会社1Line-684263578450480" target="_blank">Facebook</a></li>
<li><a href="https://www.instagram.com/oneoneline.inc/" target="_blank">Instagram</a></li>
<li><a href="https://www.youtube.com/channel/UCrPgCDGzCs-2e7VAmvMDY2Q" target="_blank">YouTube</a></li>
</ul>
</div>
<div class="item">
<h2>Devloper Tool</h2>
<ul class="adminmenu2">
<li><a href="http://ogimage.tsmallfield.com/" target="_blank">OGP画像シミュレータ</a></li>
<li><a href="https://cards-dev.twitter.com/validator" target="_blank">Twitter</a></li>
<li><a href="https://developers.facebook.com/tools/debug/" target="_blank">Facebook</a></li>
<li><a href="https://analytics.google.com/analytics/web/#/" target="_blank">Google Analytics</a></li>
<li><a href="https://stock.adobe.com/jp/" target="_blank">Adobe photo stock</a></li>
</ul>
</div>
</div>
';
}
function adminmenu_dashboard_widgets() {
wp_add_dashboard_widget('adminmenu_dashboard_widget', '編集者メニュー', 'adminmenu_dashboard_widget_function');
}
add_action('wp_dashboard_setup', 'adminmenu_dashboard_widgets' );