Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Meta User Role and em data privacy consent

tente de recupérer les utilisateur dont le role est abonné mais pas d’autre role (bénévole) ainsi que la date em data privacy consent

$meta = array(
	array(
		'key'     => 'wp_capabilities',
		'value'   => 'subscriber',
		'compare' => 'LIKE',
		'type'    => 'CHAR',
	),
	array(
		'key'     => 'wp_capabilities',
		'value'   => 'abonne',
		'compare' => 'NOT LIKE',
		'type'    => 'CHAR',
	),
	array(
		'key'     => 'em_data_privacy_consent',
	),
);