Skip to content

Hooks and Filters

Extension points the addon provides. All are verified against the plugin source (version 2.0.0).

Hook When it fires Args
wbpwpforoi_peepso_wpforo_integration_loaded After the main integration class constructs. none
Filter Purpose Args
wbpwpforoi_get_wpforo_profile_menus Modify the Profile / Topic / Activity / Subscriptions menu array before it is used. $menus
wpforo_show_tab_on_peepso_profile Show or hide an individual forum sub-tab on a profile. $enable, $menu_key, $wpforo_menus
wpforo_peepso_default_tab Override which sub-tab opens by default. $default, $submenus
Filter Purpose Args
peepso_wpforo_alter_profile_url Alter the author link rendered on the single-post forum view. $profile_urls, $member
peepso_check_is_wpforo_page Adjust the “is this a wpForo page” decision. $is_wpforo
Filter Purpose Args
peepsowpforo_peepso_activity_content_before Final filter on the addon’s activity content before display. $content
filter_new_reply_activity Filter the reply activity content specifically. $content, $replyid, $post_id
peepso_wpforo_filter_wpforo_giphy Filter content after GIPHY shortcodes are stripped. $content
Filter Purpose Args
peepsowpforo_activity_for_crosspost Return false to suppress activities created by wpForo Cross Posting. $bool (default true), $topic
alter_wpforo_enable_tpc_disable_activity Override a member’s per-user “disable topic activity” flag at runtime. $value, $manager, $topic
alter_wpforo_enable_reply_disable_activity Override a member’s per-user “disable reply activity” flag at runtime. $value, $manager, $post, $topic
Filter Purpose Args
peepso_wpforo_integration_plugin_locale Override the locale used to load translations. $locale, 'peepso-wpforo'
wpwfi_license_api_sslverify Toggle TLS verification on license API calls (default true). $bool
Constant Value Meaning
Peepso_Wpforo_Integration_MODULE_ID 22601 PeepSo module id stamped on the addon’s activities and notifications.
Peepso_Wpforo_Integration_VERSION 2.0.0 Plugin version.
EDD_WPWFI_ITEM_NAME peepso-wpforo-addon EDD Software Licensing item name.
EDD_WPWFI_ITEM_ID 78145 EDD download id used for update checks.

Example: suppress all cross-post activities

Section titled “Example: suppress all cross-post activities”
add_filter( 'peepsowpforo_activity_for_crosspost', '__return_false' );

Example: rename the Forums default sub-tab target

Section titled “Example: rename the Forums default sub-tab target”
add_filter(
'wpforo_peepso_default_tab',
function ( $default, $submenus ) {
return isset( $submenus['activity'] ) ? 'activity' : $default;
},
10,
2
);