Activity_Meta

Adds, updates, deletes, and lists activity custom fields.


Description Description

Top ↑

EXAMPLES EXAMPLES

# Set activity meta
$ wp bp activity meta set 123 description "Mary is a activity user."
Success: Updated custom field 'description'.

# Get activity meta
$ wp bp activity meta get 123 description
Mary is a Activity user.

# Update activity meta
$ wp bp activity meta update 123 description "Mary is an awesome activity user."
Success: Updated custom field 'description'.

# Delete activity meta
$ wp bp activity meta delete 123 description
Success: Deleted custom field.

Source Source

File: cli/src/activity-meta.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

Methods Methods

  • add_metadata — Wrapper method for add_metadata that can be overridden in sub classes.
  • check_object_id — Check that the activity ID exists.
  • delete_metadata — Wrapper method for delete_metadata that can be overridden in sub classes.
  • get_metadata — Wrapper method for get_metadata that can be overridden in sub classes.
  • update_metadata — Wrapper method for update_metadata that can be overridden in sub classes.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.