Abstract_Account_Api::save_account_id_to_post( int $post_id, string $account_id )
Save the account id to the post|event.
Contents
Parameters
- $post_id
-
(int) (Required) The id to save the meta field too.
- $account_id
-
(string) (Required) The id of the single account to save.
Return
(bool|int)
Source
File: src/Tribe/Integrations/Abstract_Account_Api.php
public function save_account_id_to_post( $post_id, $account_id ) {
return update_post_meta( $post_id, $this->account_id_meta_field_name, $account_id );
}
Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |