Title: Calling undefined function
Last modified: July 6, 2018

---

# Calling undefined function

 *  Resolved [chinatownlee](https://wordpress.org/support/users/chinatownlee/)
 * (@chinatownlee)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/calling-undefined-function/)
 * Hi,
 * I’m using the image field and need to display the uploaded image in the user **
   edit profile** and wp-admin area. The image should not be displayed in the user
   profile homepage.
 * This could be achieved with bp_is_profile_edit() but using it in class-field-
   type-image.php results in `Fatal error: Call to undefined function BPXProfileCFTR\
   Field_Types\bp_is_profile_edit()`
 * Please help.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [chinatownlee](https://wordpress.org/support/users/chinatownlee/)
 * (@chinatownlee)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/calling-undefined-function/#post-10468983)
 * Apparently, the function is deprecated as are the instructions in buddypress.
   org.
 * Works with:
    `bp_is_user_profile_edit()`
 *  Plugin Author [Brajesh Singh](https://wordpress.org/support/users/sbrajesh/)
 * (@sbrajesh)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/calling-undefined-function/#post-10477838)
 * Hi,
    I am glad you found the solutions. Yes, `bp_is_user_profile_edit()` is the
   right way to test for it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Calling undefined function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-xprofile-custom-field-types_bd5f1c.
   svg)
 * [BuddyPress Xprofile Custom Field Types](https://wordpress.org/plugins/bp-xprofile-custom-field-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-xprofile-custom-field-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-xprofile-custom-field-types/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-xprofile-custom-field-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-xprofile-custom-field-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-xprofile-custom-field-types/reviews/)

## Tags

 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brajesh Singh](https://wordpress.org/support/users/sbrajesh/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/calling-undefined-function/#post-10477838)
 * Status: resolved