You appear to be a bot. Output may be restricted
Description
Implement "user_contactmethods" filter for oik-user – 2nd passHere we remove the contact methods that the administrator has decided should not be displayed on the "oik user admin" page.
Usage
$array = oiku_user_contactmethods_selected( $contact_methods );
Parameters
- $contact_methods
- ( array ) required – array of possible contact methods and their labels
Returns
array filtered contact methodsSource
File name: oik-user/admin/oik-user.phpLines:
1 to 13 of 13
function oiku_user_contactmethods_selected( $contact_methods ) { $oik_user_options = get_option( "bw_user_options" ); //bw_trace2( $oik_user_options, "bw_user_options" ); if ( $oik_user_options && count( $oik_user_options ) ) { foreach ( $oik_user_options as $key => $value ) { //bw_trace2( $key, $value ); if ( !$value ) { unset( $contact_methods[ $key ]); } } } return( $contact_methods ); }View on GitHub