stream_exists()
stream_exists(string $slug) : boolean
Check if a stream is in the database
Parameters
string | $slug |
insert_stream(string $slug, string $title = NULL, array $query_array = NULL) : integer
Insert a new stream, with the option to pass a wp_query array to filter the stream.
Returns false if the stream already exists.
string | $slug | |
string | $title | |
array | $query_array | wp_query object |
$pid ID of new stream