Changeset 842701
- Timestamp:
- 01/21/2014 10:06:19 PM (12 years ago)
- File:
-
- 1 edited
-
wp-user-avatar/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-user-avatar/trunk/readme.txt
r841199 r842701 261 261 Then, to add WP User Avatar to that hook and remove it from the other hooks outside of the administration panel, you would add this code to the <code>functions.php</code> file of your theme: 262 262 263 ` if(!is_admin()){263 `function my_avatar_filter(){ 264 264 // Remove from show_user_profile hook 265 265 remove_action('show_user_profile', array('wp_user_avatar', 'wpua_action_show_user_profile')); … … 273 273 add_action('edit_user_avatar', array('wp_user_avatar', 'wpua_action_show_user_profile')); 274 274 add_action('edit_user_avatar', array('wp_user_avatar', 'wpua_media_upload_scripts')); 275 } 276 // Loads only outside of administration panel 277 if(!is_admin()){ 278 add_action('plugins_loaded','my_avatar_filter');` 275 279 }` 276 280
Note: See TracChangeset
for help on using the changeset viewer.