Skip to content

Instantly share code, notes, and snippets.

View Spoygg's full-sized avatar

Ivan Ivanić Spoygg

View GitHub Profile
@Spoygg
Spoygg / Add-WordPress-Dashboard-Widget.php
Created August 6, 2019 09:16 — forked from SalmanRavoof/Add-WordPress-Dashboard-Widget.php
Add a custom widget to your WordPress dashboard.
// Add a new widget to the dashboard using a custom function
function wpmudev_add_dashboard_widgets() {
wp_add_dashboard_widget(
'wpmudev_dashboard_widget', // Widget slug
'My Custom Dashboard Widget', // Widget title
'wpmudev_new_dashboard_widget_function' // Function name to display the widget
);
}
// Register the new dashboard widget with the 'wp_dashboard_setup' action
add_action( 'wp_dashboard_setup', 'wpmudev_add_dashboard_widgets' );
@Spoygg
Spoygg / README.md
Last active December 10, 2015 06:08 — forked from anonymous/deviant-art-bookmarklet.js
Simple bookmarklet to activate two keyboard shortcuts on http://my.deviantart.com/messages/#view=deviations single deviation view. First is to 'a' to "Add to Favorites", second is 'k' to remove from messages. (kill is mnemonic for 'k'). Instructions: add bookmark with contents of this file. When on dA single deviation view click on bookmark.

Unfortunately below link does not work.

Drag on bookmarks toolbar