[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * Filters related to the Settings component.
   5   *
   6   * @since 4.0.0
   7   */
   8  
   9  // Personal data export.
  10  add_filter( 'wp_privacy_personal_data_exporters', 'bp_settings_register_personal_data_exporter' );
  11  
  12  /**
  13   * Registers Settings personal data exporter.
  14   *
  15   * @since 4.0.0
  16   *
  17   * @param array $exporters  An array of personal data exporters.
  18   * @return array An array of personal data exporters.
  19   */
  20  function bp_settings_register_personal_data_exporter( $exporters ) {
  21      $exporters['buddypress-settings'] = array(
  22          'exporter_friendly_name' => __( 'BuddyPress Settings Data', 'buddypress' ),
  23          'callback'               => 'bp_settings_personal_data_exporter',
  24      );
  25  
  26      return $exporters;
  27  }


Generated: Tue Jul 23 01:01:40 2019 Cross-referenced by PHPXref 0.7.1