log.aroute.net

サカナクション – さよならはエモーション


WPメモ

記事に画像を挿入する際にリンク先の初期選択値を「なし」に
 
/wp-admin/options.php
image_default_link_type -> none
 
via : https://netaone.com/wp/wordpress-image-link-none/
 
previous_posts_link()に任意のclass名を追加する
 
add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');
function posts_link_attributes(){
return 'class="class"';
}
 
via : https://kachibito.net/wp-code/adding-classes-to-previous_posts_link

WordPressの更新通知を止める

// stop wordpres update
add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));
 
// stop plugin update
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
 
// stop theme update
remove_action( 'load-update-core.php', 'wp_update_themes' );
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );

Android 5.0


この贅沢なマージン、すばらしい。