[ 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   * @since 5.0.0 adds an `exporter_bp_friendly_name` param to exporters.
  17   *
  18   * @param array $exporters  An array of personal data exporters.
  19   * @return array An array of personal data exporters.
  20   */
  21  function bp_settings_register_personal_data_exporter( $exporters ) {
  22      $exporters['buddypress-settings'] = array(
  23          'exporter_friendly_name'    => __( 'BuddyPress Settings Data', 'buddypress' ),
  24          'callback'                  => 'bp_settings_personal_data_exporter',
  25          'exporter_bp_friendly_name' => _x( 'Personal settings', 'BuddyPress Settings Data data exporter friendly name', 'buddypress' ),
  26      );
  27  
  28      return $exporters;
  29  }


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