Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Help with Basic Command to Add New Profile Fields

@paulhawke

Member

I just loaded the code into an editor, and reformatted for clarity

<?php
/*
Plugin Name: jbs_own_plugin
(etc....)
*/

add_filter( 'get_profile_info_keys',
array('user_email' => array(1, __('Email')),
'user_url' => array(0, __('Website')),
'from' => array(0, __('Location')),
'occ' => array(0, __('Occupation')),
'interest' => array(0, __('Interests')),
'extra' => array(0, __('Extra'))));

?>

Basically, it was missing a closing ) and semi-colon on the line. I cant promise that it does exactly what you are after, but this ought to solve the PHP syntax error. :-) Good luck.

Skip to toolbar