BP_Media_Component::setup_actions()

Set up the actions.

Description

Source

File: bp-media/classes/class-bp-media-component.php

218
219
220
221
222
223
224
225
226
227
public function setup_actions() {
 
    // Perform a daily tidy up.
    if ( ! wp_next_scheduled( 'bp_media_delete_orphaned_attachments_hook' ) )
        wp_schedule_event( time(), 'daily', 'bp_media_delete_orphaned_attachments_hook' );
 
    add_action( 'bp_media_delete_orphaned_attachments_hook', 'bp_media_delete_orphaned_attachments' );
 
    parent::setup_actions();
}

Changelog

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.