Skip to content

Instantly share code, notes, and snippets.

digitalinkwell

Block or report user

Report or block digitalinkwell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View simpleweatherheader
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" charset="utf-8"></script>
<script src="<?php echo esc_url( home_url( '/' ) ); ?>/jquery.simpleWeather.js" charset="utf-8"></script>
<script type="text/javascript">
$(function() {
$.simpleWeather({
location: 'london, united kingdom',
unit: 'c',
success: function(weather) {
html = '<h2>'+weather.city+', '+weather.region+'</h2>';
View simpleweathercss
#weather2 {
background: #6f9dbe;
background: -webkit-gradient(linear, left top, left bottom, from(#adc7db), to(#6f9dbe));
background: -moz-linear-gradient(top, #b2bcc8, #adc7db);
width: 185px;
padding: 5px 10px;
overflow: hidden;
border: 1px solid #6591b3;
}
View remove-howdy
add_filter('gettext', 'change_howdy', 10, 3);
function change_howdy($translated, $text, $domain) {
if (!is_admin() || 'default' != $domain)
return $translated;
if (false !== strpos($translated, 'Howdy'))
return str_replace('Howdy', 'Welcome', $translated);
View dash-widget-outline
add_action( 'wp_dashboard_setup', 'register_my_dashboard_widget' );
function register_my_dashboard_widget() {
wp_add_dashboard_widget(
'my_dashboard_widget',
'My Dashboard Widget',
'my_dashboard_widget_display'
);
}
View custom-dash-logo
View dash-header-logo
View enable-core-auto-updates.php
# Enable all core updates, including minor and major:
define( 'WP_AUTO_UPDATE_CORE', true );
View auto-plugin-updates.php
add_filter( 'auto_update_plugin', '__return_true' );
View auto-theme-updates.php
add_filter( 'auto_update_theme', '__return_true' );
You can’t perform that action at this time.