This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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