/** * Runs pre-header functions for profile page * * @since 0.22 * */ static function crm_page_wp_crm_add_new() { global $wp_crm; //** If we are on 'crm_page_wp_crm_add_new' screen - render metaboxes for groups */ if (!empty($wp_crm['configuration']['allow_attributes_grouping']) && $wp_crm['configuration']['allow_attributes_grouping'] == 'true') { WP_CRM_F::grouped_metaboxes(); } add_filter("screen_settings", array('WP_CRM_F', 'crm_screen_options')); //** Screen Options */ if (function_exists('add_screen_option')) { add_screen_option('layout_columns', array('max' => 2, 'default' => 2)); add_screen_option('per_page', array('label' => __('Notifications', 'wp_crm'), 'default' => 10)); } //** Help items */ $contextual_help['General Help'][] = '<h3>' . __('User Editing', 'wp_crm') . '</h3>'; $contextual_help['General Help'][] = '<p>' . __('Please visit the WP-CRM Settings page to determine which fields to display on the editing page.', 'wp_crm') . '</p>'; $contextual_help['General Help'][] = '<h3>' . __('User Activity History', 'wp_crm') . '</h3>'; $contextual_help['General Help'][] = '<p>' . __('The activity history can be used to log notes regarding a user, and will display any incoming messages generated by the user when using a WP-CRM shortcode forms.', 'wp_crm') . '</p>'; //** Hook this filter if you need to add something */ $contextual_help = apply_filters('crm_page_wp_crm_add_new_help', $contextual_help); do_action('wp_crm_contextual_help', array('contextual_help' => $contextual_help)); }