| | 319 | function bp_activity_set_action( $component_id, $key, $value ) { |
| | 320 | global $bp; |
| | 321 | |
| | 322 | if ( empty( $component_id ) || empty( $key ) || empty( $value ) ) |
| | 323 | return false; |
| | 324 | |
| | 325 | $bp->activity->actions->{$component_id}->{$key} = apply_filters( 'bp_activity_set_action', array( |
| | 326 | 'key' => $key, |
| | 327 | 'value' => $value |
| | 328 | ), $component_id, $key, $value ); |
| | 329 | } |
| | 330 | |
| | 331 | function bp_activity_get_action( $component_id, $key ) { |
| | 332 | global $bp; |
| | 333 | |
| | 334 | if ( empty( $component_id ) || empty( $key ) ) |
| | 335 | return false; |
| | 336 | |
| | 337 | return apply_filters( 'bp_activity_get_action', $bp->activity->actions->{$component_id}->{$key}, $component_id, $key ); |
| | 338 | } |
| | 339 | |
| | 340 | function groups_get_activity_action( $key ) { |
| | 341 | if ( !function_exists( 'bp_activity_get_action' ) ) |
| | 342 | return false; |
| | 343 | |
| | 344 | return apply_filters( 'groups_get_activity_action', bp_activity_get_action( $key ), $key ); |
| | 345 | } |
| | 346 | |