Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter('leaky_paywall_reporting_tool_meta', 'testmag_reporting_tool_company_field_header' );
function testmag_reporting_tool_company_field_header( $meta ) {
$meta[] = 'company';
return $meta;
}
add_filter('leaky_paywall_reporting_tool_user_meta', 'testmag_reporting_tool_company_field_value', 20, 2 );
function testmag_reporting_tool_company_field_value( $user_meta, $user_id ) {
$user_meta[$user_id]['company'] = get_user_meta($user_id, '_company', true);
return $user_meta;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment