reference-posts.php
Table of Contents
Functions
- buddyc_get_reference_post_id() : mixed
- Retrieves the ID of a reference post by key.
- buddyc_add_reference_post() : mixed
- Adds a new reference post.
Functions
buddyc_get_reference_post_id()
Retrieves the ID of a reference post by key.
buddyc_get_reference_post_id(string $key) : mixed
Parameters
- $key : string
-
The key of the post ID to retrieve.
Tags
buddyc_add_reference_post()
Adds a new reference post.
buddyc_add_reference_post(string $key, array<string|int, mixed> $args) : mixed
Parameters
- $key : string
-
The unique key for the reference post.
- $args : array<string|int, mixed>
-
{ An array of arguments for creating the new reference post.
@string $content The content of the post. @string $title The title of the post.}