[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * XProfile: User's "Profile > Change Cover Image" screen handler 4 * 5 * @package BuddyPress 6 * @subpackage XProfileScreens 7 * @since 3.0.0 8 */ 9 10 /** 11 * Displays the change cover image page. 12 * 13 * @since 2.4.0 14 */ 15 function xprofile_screen_change_cover_image() { 16 17 // Bail if not the correct screen. 18 if ( ! bp_is_my_profile() && ! bp_current_user_can( 'bp_moderate' ) ) { 19 return false; 20 } 21 22 /** 23 * Fires right before the loading of the XProfile change cover image screen template file. 24 * 25 * @since 2.4.0 26 */ 27 do_action( 'xprofile_screen_change_cover_image' ); 28 29 /** 30 * Filters the template to load for the XProfile cover image screen. 31 * 32 * @since 2.4.0 33 * 34 * @param string $template Path to the XProfile cover image template to load. 35 */ 36 bp_core_load_template( apply_filters( 'xprofile_template_cover_image', 'members/single/home' ) ); 37 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sat Feb 29 01:01:31 2020 | Cross-referenced by PHPXref 0.7.1 |