do_action( "{$component}_cover_image_uploaded", int $item_id, string $name, string $cover_url, int $feedback_code )

Fires if the new cover image was successfully uploaded.


Description Description

The dynamic portion of the hook will be members in case of a user’s cover image, groups in case of a group’s cover image. For instance: Use add_action( ‘members_cover_image_uploaded’ ) to run your specific code once the user has set his cover image.


Parameters Parameters

$item_id

Inform about the item id the cover image was set for.

$name

Filename.

$cover_url

URL to the image.

$feedback_code

If value not 1, an error occured.


Top ↑

Source Source

File: bp-core/bp-core-attachments.php


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Added $cover_url, $name, $feedback_code arguments.
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.