Skip to content

Instantly share code, notes, and snippets.

@norico norico/Auto Hide (gr)Avatars Secret
Last active Feb 26, 2019

Embed
What would you like to do?
<?php
function TNT_Auto_Hide_Avatars(){
$avatars = get_option( 'show_avatars' );
if ($avatars === "1" ){
update_option( 'show_avatars', 0, 'yes' );
}
}
add_action( 'init', 'TNT_Auto_Hide_Avatars' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.