bp_activity_type_requires_content, $this->type === activity_update, $this->type
bp_activity_type_requires_content, $this->type === activity_update, $this->type
Appears in: buddypress.14.5.2
Hook Type: filter
Displaying hooks found in version: buddypress.14.5.2apply_filters('bp_activity_type_requires_content, $this->type === activity_update, $this->type') is found 1 times:
- /bp-activity/classes/class-bp-activity-activity.php line 294
* @param bool $value True if the content of the activity type is required. * False otherwise. * @param string $type The type of the activity we are about to insert. */ $type_requires_content = (bool) apply_filters( 'bp_activity_type_requires_content', $this->type === 'activity_update', $this->type ); if ( $type_requires_content && ! $this->content ) { if ( 'bool' === $this->error_type ) { return false; } else { $this->errors->add( 'bp_activity_missing_content', __( 'Please enter some content to post.', 'buddypress' ) );