bp_activity_edit_times( null $time = null )
single time slot by time key.
Description
Parameters
- $time
-
(Optional) Return single time slot by time key.
Default value: null
Return
(mixed|void)
Source
File: bp-core/bp-core-options.php
function bp_activity_edit_times( $time = null ) {
$times = apply_filters(
'bp_activity_edit_times',
array(
'thirty_days' => array( 'value' => ( 60 * 60 * 24 * 30 ), 'label' => __( '30 Days', 'buddyboss' ) ),
'seven_days' => array( 'value' => ( 60 * 60 * 24 * 7 ), 'label' => __( '7 Days', 'buddyboss' ) ),
'one_day' => array( 'value' => ( 60 * 60 * 24 ), 'label' => __( '1 Day', 'buddyboss' ) ),
'one_hour' => array( 'value' => ( 60 * 60 ), 'label' => __( '1 Hour', 'buddyboss' ) ),
'ten_minutes' => array( 'value' => ( 60 * 10 ), 'label' => __( '10 Minutes', 'buddyboss' ) ),
)
);
if ( $time && isset( $times[ $time ] ) ) {
return $times[ $time ];
}
return $times;
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.5.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.