bp_album_delete( array|string $args )
Delete album item.
Description
Parameters
- $args
-
(Required) To delete specific album items, use $args = array( 'id' => $ids ); Otherwise, to use filters for item deletion, the argument format is the same as BP_Media_Album::get(). See that method for a description.
Return
(bool) True on Success. False on error.
Source
File: bp-media/bp-media-functions.php
function bp_album_delete( $album_id ) { $delete = BP_Media_Album::delete( array( 'id' => $album_id ) ); if ( ! $delete ) { return false; } /** * Fires at the end of the execution of delete an album item * * @since BuddyBoss 1.0.0 * * @param int $album_id ID of album */ do_action( 'bp_album_delete', $album_id ); return $album_id; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.