[ 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   *
  18   * @param array $exporters  An array of personal data exporters.
  19   * @return array An array of personal data exporters.
  20   */
  21  function bp_register_notifications_personal_data_exporter( $exporters ) {
  22      $exporters['buddypress-notifications'] = array(
  23          'exporter_friendly_name' => __( 'BuddyPress Notifications Data', 'buddypress' ),
  24          'callback'               => 'bp_notifications_personal_data_exporter',
  25      );
  26  
  27      return $exporters;
  28  }


Generated: Mon Jul 22 01:01:43 2019 Cross-referenced by PHPXref 0.7.1