Changeset 10157 for trunk/src/bp-xprofile/bp-xprofile-screens.php
- Timestamp:
- 09/29/2015 11:02:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-screens.php
r10140 r10157 297 297 298 298 /** 299 * Displays the change cover image page. 300 * 301 * @package BuddyPress XProfile 302 * 303 * @since 2.4.0 304 */ 305 function xprofile_screen_change_cover_image() { 306 307 // Bail if not the correct screen 308 if ( ! bp_is_my_profile() && ! bp_current_user_can( 'bp_moderate' ) ) { 309 return false; 310 } 311 312 /** 313 * Fires right before the loading of the XProfile change cover image screen template file. 314 * 315 * @since 2.4.0 316 */ 317 do_action( 'xprofile_screen_change_cover_image' ); 318 319 /** 320 * Filters the template to load for the XProfile cover image screen. 321 * 322 * @since 2.4.0 323 * 324 * @param string $template Path to the XProfile cover image template to load. 325 */ 326 bp_core_load_template( apply_filters( 'xprofile_template_cover_image', 'members/single/home' ) ); 327 } 328 329 /** 299 330 * Show the xprofile settings template 300 331 *
Note: See TracChangeset
for help on using the changeset viewer.