bp_attachments_cover_image_is_edit

Are we on a page to edit a cover image?.

Description

bp_attachments_cover_image_is_edit(); 

Usage

  1. if ( !function_exists( 'bp_attachments_cover_image_is_edit' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-attachments.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_attachments_cover_image_is_edit(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-attachments.php  
  1. function bp_attachments_cover_image_is_edit() { 
  2. $retval = false; 
  3.  
  4. $current_component = bp_current_component(); 
  5. if ( bp_is_active( 'xprofile' ) && bp_is_current_component( 'xprofile' ) ) { 
  6. $current_component = 'xprofile'; 
  7.  
  8. if ( ! bp_is_active( $current_component, 'cover_image' ) ) { 
  9. return $retval; 
  10.  
  11.  
  12. if ( ( bp_is_group_admin_page() && 'group-cover-image' == bp_get_group_current_admin_tab() ) 
  13. || ( bp_is_group_create() && bp_is_group_creation_step( 'group-cover-image' ) ) ) { 
  14.  
  15. return apply_filters( 'bp_attachments_cover_image_is_edit', $retval, $current_component );