[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Members: Change Cover Image screen handler 4 * 5 * @package BuddyPress 6 * @subpackage MembersScreens 7 * @since 6.0.0 8 */ 9 10 /** 11 * Handle the display of the profile Change Cover Image page by loading the correct template file. 12 * 13 * @since 6.0.0 14 */ 15 function bp_members_screen_change_cover_image() { 16 // Bail if not the correct screen. 17 if ( ! bp_is_my_profile() && ! bp_current_user_can( 'bp_moderate' ) ) { 18 return false; 19 } 20 21 /** This action is documented in wp-includes/deprecated.php */ 22 do_action_deprecated( 'xprofile_screen_change_cover_image', array(), '6.0.0', 'bp_members_screen_change_cover_image' ); 23 24 /** 25 * Fires right before the loading of the Member Change Cover Image screen template file. 26 * 27 * @since 6.0.0 28 */ 29 do_action( 'bp_members_screen_change_cover_image' ); 30 31 /** This filter is documented in wp-includes/deprecated.php */ 32 $template = apply_filters_deprecated( 'xprofile_template_cover_image', array( 'members/single/home' ), '6.0.0', 'bp_members_template_change_cover_image' ); 33 34 /** 35 * Filters the template to load for the Member Change Cover Image page screen. 36 * 37 * @since 6.0.0 38 * 39 * @param string $template Path to the Member template to load. 40 */ 41 bp_core_load_template( apply_filters( 'bp_members_template_change_cover_image', $template ) ); 42 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 22 01:00:56 2024 | Cross-referenced by PHPXref 0.7.1 |