[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-notifications/ -> bp-notifications-filters.php (source)

   1  <?php
   2  /**
   3   * Filters related to the Activity component.
   4   *
   5   * @package BuddyPress
   6   * @subpackage Notifications
   7   * @since 4.0.0
   8   */
   9  
  10  // Privacy data export.
  11  add_filter( 'wp_privacy_personal_data_exporters', 'bp_register_notifications_personal_data_exporter' );
  12  
  13  /**
  14   * Register Notifications personal data exporter.
  15   *
  16   * @since 4.0.0
  17   * @since 5.0.0 adds an `exporter_bp_friendly_name` param to exporters.
  18   *
  19   * @param array $exporters  An array of personal data exporters.
  20   * @return array An array of personal data exporters.
  21   */
  22  function bp_register_notifications_personal_data_exporter( $exporters ) {
  23      $exporters['buddypress-notifications'] = array(
  24          'exporter_friendly_name'    => __( 'BuddyPress Notifications Data', 'buddypress' ),
  25          'callback'                  => 'bp_notifications_personal_data_exporter',
  26          'exporter_bp_friendly_name' => _x( 'Notifications Data', 'BuddyPress Notifications data exporter friendly name', 'buddypress' ),
  27      );
  28  
  29      return $exporters;
  30  }


Generated: Tue Nov 12 01:01:38 2019 Cross-referenced by PHPXref 0.7.1