[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Filters related to the Notifications component. 4 * 5 * @package BuddyPress 6 * @subpackage Notifications 7 * @since 4.0.0 8 */ 9 10 // Format numerical output. 11 add_filter( 'bp_notifications_get_total_notification_count', 'bp_core_number_format' ); 12 13 // Privacy data export. 14 add_filter( 'wp_privacy_personal_data_exporters', 'bp_register_notifications_personal_data_exporter' ); 15 16 /** 17 * Register Notifications personal data exporter. 18 * 19 * @since 4.0.0 20 * @since 5.0.0 adds an `exporter_bp_friendly_name` param to exporters. 21 * 22 * @param array $exporters An array of personal data exporters. 23 * @return array An array of personal data exporters. 24 */ 25 function bp_register_notifications_personal_data_exporter( $exporters ) { 26 $exporters['buddypress-notifications'] = array( 27 'exporter_friendly_name' => __( 'BuddyPress Notifications Data', 'buddypress' ), 28 'callback' => 'bp_notifications_personal_data_exporter', 29 'exporter_bp_friendly_name' => _x( 'Notifications Data', 'BuddyPress Notifications data exporter friendly name', 'buddypress' ), 30 ); 31 32 return $exporters; 33 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:57 2024 | Cross-referenced by PHPXref 0.7.1 |