• Resolved chinatownlee

    (@chinatownlee)


    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

    (@chinatownlee)

    Apparently, the function is deprecated as are the instructions in buddypress.org.

    Works with:
    bp_is_user_profile_edit()

    Plugin Author Brajesh Singh

    (@sbrajesh)

    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.