Top
Home

Dashboard Widget 2

Putting your plugin on the dashboard. Paste this at the bottom of your index in the widget.



function MooseLoose() {
wp_add_dashboard_widget(
'Moose_Loose',
'Upload Graphics Moose Fade Banner', // Title.
'example_dashboard_widget_function'
);
}
add_action( 'wp_dashboard_setup', 'MooseLoose' );
function example_dashboard_widget_function() {

?>
<div style="background-color:#CAD3E6;padding:20px">
<img src="../wp-content/plugins/Moose_Fade/img/headerw.png">
<form action="../wp-content/plugins/Moose_Fade/uploadz.php" method="post" enctype="multipart/form-data">
Select image to upload:<br>
<input type="file" name="fileToUpload" id="fileToUpload"><br>
<input type="submit" value="Upload Image" name="submit">
</form>
</div>
<?php

}