Tektriks

Coding starts here

Add Custom Dashboard Widget in WordPress

This code will display a custom dashboard widget in wordpress admin.


function add_custom_dashboard_widget()
{
	wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details', 'developer_theme_info');
}
add_action('wp_dashboard_setup', 'add_custom_dashboard_widget' );

function developer_theme_info()
{http://tektics.tk/sec-eadmin/plugins.php
	echo "</pre> 
<ul> 
<li><strong>Developed By: </strong>Biswajit Paul</li><li><strong>Website:</strong> 
<a href='". get_option('siteurl') ."'>". get_option('blogname') ."</a></li> <li><strong>Contact:</strong> <a href='mailto:". get_option('admin_email') ."'>". get_option('admin_email') ."</a></li> </ul><pre>
";
}

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz