-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathload.php
More file actions
26 lines (25 loc) · 902 Bytes
/
load.php
File metadata and controls
26 lines (25 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* Plugin Name: Test Plugin Personal Data Exporter With Errors
* Plugin URI: https://github.com/WordPress/plugin-check
* Description: Test plugin for the Personal Data Exporter check — stores user meta but does not register a data exporter.
* Requires at least: 6.3
* Requires PHP: 7.4
* Version: 1.0.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* Text Domain: test-plugin-personal-data-exporter-errors
*
* @package test-plugin-personal-data-exporter-errors
*/
/**
* Saves a custom preference for a user.
*
* @param int $user_id User ID.
*/
function test_pde_save_user_preference( $user_id ) {
update_user_meta( $user_id, 'test_pde_preference', 'some_value' );
}
add_action( 'user_register', 'test_pde_save_user_preference' );