Skip to content

Developer Guide

BuddyPress Giphy is designed to be extended without editing plugin files. This section covers the customisation points available to theme and plugin developers.

Area How
Who sees the GIF button buddypress_giphy_show_button filter
GIPHY content-rating options buddypress_giphy_gif_content_rating filter
GIPHY rendition options buddypress_giphy_gif_size filter
Klipy content-filter options buddypress_giphy_klipy_content_filter filter
Klipy rendition options buddypress_giphy_klipy_gif_size filter
Admin sidebar tabs buddypress_giphy_admin_setting_tabs filter
License API SSL verification bpgp_license_api_sslverify filter
Reading GIF data from the REST API bp_giphy field on activity objects
  • Filter Reference: all eight extension filters with signatures and usage examples
  • REST API: the bp_giphy field added to BuddyPress activity responses
  • No custom REST namespace or endpoints (it extends BuddyPress’s existing endpoints only)
  • No shortcodes
  • No WP-CLI commands
  • No actions fired (only filters)

GIF attachments are stored in BuddyPress activity meta:

Meta key Description
_bp_activity_gif_data Array with bp_activity_gif_id and bp_activity_gif (URL). Set on the activity after a member posts with a GIF attached.

Plugin settings are stored as a single option:

Option key Description
bpgp_settings All General settings (provider, API keys, GIF count, content rating/filter, rendition, area toggles).