Clanbite Teams

apply_filters( 'clanbite_create_team_post_status', string $post_status, int $user_id )

Filters the post status of a newly created team (for example pending to require moderation).

Filter PHP

Parameters

$post_status (string)

Post status (default publish).

$user_id (int)

Creating user ID.

Example

add_filter( 'clanbite_create_team_post_status', function ( $post_status, $user_id ) {
	// Change $post_status here.
	return $post_status;
}, 10, 2 );

Defined in inc/extensions/teams/class-extension-teams.php

Changelog

VersionDescription
1.3.0Updated.