__( 'Pages', 'user-profile' ), 'priority' => 10, 'page_settings' => array( 'section_general' => array( 'title' => __('General','user-profile'), 'description' => __('Select all pages from here','user-profile'), 'options' => array( array( 'id' => 'user_profile_page_id', 'title' => __('Profile Display Page','user-profile'), 'details' => __('Select a page where the user profile will display','user-profile'), 'type' => 'select', 'args' => 'PICK_PAGES_ARRAY', ), array( 'id' => 'user_profile_edit_page_id', 'title' => __('Profile Edit Page','user-profile'), 'details' => __('Select a page where the user profile can be editable','user-profile'), 'type' => 'select', 'args' => 'PICK_PAGES_ARRAY', ), ) ), ), ); $user_profile_options = array( 'page_nav' => __( 'Options', 'user-profile' ), 'priority' => 15, 'page_settings' => array( 'section_templates' => array( 'title' => __('Templates','user-profile'), 'description' => __('Select display templates from here','user-profile'), 'options' => array( array( 'id' => 'user_profile_display_template', 'title' => __('User display template','user-profile'), 'details' => __('Select how you want to display the single user item','user-profile'), 'type' => 'select', 'args' => $userprofile->get_user_templates( true ), ), ) ), ), ); $user_profile_help = array( 'page_nav' => __( 'Help', 'user-profile' ), 'priority' => 30, 'show_submit' => false, 'page_settings' => array( 'section_general' => array( 'options' => array( array( 'id' => 'changelog', 'title' => __('Huge change, Right ?','user-profile'), 'details' => 'Yes! we have changed huge feature for latest version, plugin is re-written and added more functinality to make your site user profile gives more social feel and look.
Create new page for user profile and paste the following shortcdoe inside page content
[user_profile]and go to settigns page and set User profile page, select that page you just created.
Create new page for user profile edit and paste the following shortcdoe inside page content
[user_profile_edit]and go to settigns page and set User profile edit page, select that page you just created.
After creating pages you can visit to see user profile and profile edit form, and you are done.',
),
array(
'id' => 'documentation',
'title' => __('Documentation','user-profile'),
'details' => 'We are updating our documentation for this plugins, pelase check and learn more things we added.
http://pickplugins.com/docs/documentation/user-profile/'
),
array(
'id' => 'Demo',
'title' => __('Demo','user-profile'),
'details' => 'Please see the live demo on our server
http://www.pickplugins.com/demo/user-profile/?id=48'
),
array(
'id' => 'older_version',
'title' => __('Need older version?','user-profile'),
'details' => 'We are updating our plugin to make more useful. if you like to use older version please go following link and download older verison
https://wordpress.org/plugins/user-profile/developers/'
),
)
),
),
);
$args = array(
'add_in_menu' => true,
'menu_type' => 'main',
'menu_title' => __( 'User Profile', 'user-profile' ),
'page_title' => __( 'User Profile', 'user-profile' ),
'menu_page_title' => __( 'User Profile Settings', 'user-profile' ),
'capability' => "manage_options",
'menu_slug' => "user-profile",
'menu_icon' => "dashicons-businessman",
'pages' => array(
'user_profile_pages' => $user_profile_pages,
'user_profile_options' => $user_profile_options,
),
);
$Pick_settings = new Pick_settings( $args );
$args = array(
'add_in_menu' => true,
'menu_type' => 'submenu',
'menu_title' => __( 'Help', 'user-profile' ),
'page_title' => __( 'User Profile - Help', 'user-profile' ),
'menu_page_title' => __( 'User Profile - Help', 'user-profile' ),
'capability' => "manage_options",
'menu_slug' => "user-profile-help",
'parent_slug' => "user-profile",
'menu_icon' => "dashicons-businessman",
'pages' => array(
'user_profile_help' => $user_profile_help,
),
);
$Pick_settings = new Pick_settings( $args );
function action_user_profile_addons_function(){
include USER_PROFILE_PLUGIN_DIR . "templates/admin-menu-addons.php";
}
//add_action( 'user_profile_addons', 'action_user_profile_addons_function' );