mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-07-27 02:55:34 +08:00
47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
|
|
/*
|
|
* Plugin Name: Viktor widget
|
|
* Plugin URI: https://github.com/szepeviktor/wordpress-website-lifecycle
|
|
*/
|
|
|
|
add_action('wp_dashboard_setup', 'szv_add_dashboard_widget', 10, 0);
|
|
|
|
function szv_add_dashboard_widget()
|
|
{
|
|
wp_add_dashboard_widget(
|
|
'szv_widget',
|
|
'Welcome developer!', // widget_name
|
|
'szv_render_dashboard_widget',
|
|
null,
|
|
null,
|
|
'normal', // context
|
|
'high' // priority
|
|
);
|
|
}
|
|
|
|
function szv_render_dashboard_widget($post, $callback_args)
|
|
{
|
|
$profile_url = 'https://github.com/szepeviktor';
|
|
echo <<<HTML
|
|
<div class="main">
|
|
<ul>
|
|
<li class="onboarding-server">
|
|
<a
|
|
href="{$profile_url}/debian-server-tools/blob/master/Onboarding.md#onboarding-for-developers"
|
|
target="_blank"
|
|
>Server info for developers</a>
|
|
</li>
|
|
<li class="onboarding-wordpress">
|
|
<a
|
|
href="{$profile_url}/wordpress-website-lifecycle/blob/master/README.md#onboarding-for-developers"
|
|
target="_blank"
|
|
>WordPress info for developers</a>
|
|
</li>
|
|
<li class="questions">
|
|
<a href="mailto:viktor@szepe.net">Questions?</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
HTML;
|
|
}
|