Lines:
1 to 100 of 108
<?php // (C) Copyright Bobbing Wide 2013-2017 /* function oiku_lazy_admin_menu() – Implements "oik_admin_menu" action for oik-user */ /* function oik_user_options_validate() – Validate the oik user options fields */ /* function oik_user_admin_page() – Display the oik user admin page */ /* function oik_user_list_metadata() – Return an array of possible user contact methods fields to display */ /* function oik_user_profile_fields() – Display checkboxes for fields that could be displayed */ /* function oiku_get_function_as_string() – Return the function name as a string */ /* function oiku_get_function_as_array() – Return the function name as an array if necessary */ /* function oik_user_profile_filters() – Identify the other action hooks to remove */ /* function oiku_action() – Implement actions or filters that we haven’t understood yet! */ /* function oiku_user_contactmethod() – Add a contact method if not already listed */ /* function oiku_user_contactmethods() – Implement "user_contactmethods" filter for oik-user – 1st pass */ /* function oiku_user_contactmethods_selected() – Implement "user_contactmethods" filter for oik-user – 2nd pass */ /* function bw_get_user_meta() – Return the user meta data for user $ID and key $key */ /* function bw_update_user_meta() – Update user meta data */ /* function oiku_edit_user_profile() – Implement "edit_user_profile" action for oik-user to display another user’s fields */ /* function oiku_remove_filters_for_anonymous_class() – Remove a filter defined for an object */ /* function oiku_show_user_profile_selected() – Implement "show_user_profile" action for oik-user */ /* function oiku_show_user_profile() – Implement "show_user_profile" action for oik-user to display user’s fields */ /* function oiku_display_activation_status() – Display user Activated information */ /* function oiku_personal_options_update() – Implement "personal_options_update" for oik-user */ /* function oiku_edit_user_profile_update() – Implement "edit_user_profile_update" for oik-user */ /* function oiku_extra_usage_notes_2() { oik_require( "includes/oik-sc-help.inc" ); p( "Use the shortcodes in your pages, widgets and titles. e.g." ); bw_invoke_shortcode( "bw_contact", "alt=2", "Display your alternative contact name." ); bw_invoke_shortcode( "bw_email", "alt=2 prefix=e-mail", "Display your alternative email address, with a prefix of 'e-mail'." ); bw_invoke_shortcode( "bw_telephone", "alt=2", "Display your alternative telephone number." ); bw_invoke_shortcode( "bw_address", "alt=2", "Display your alternative address." ); bw_invoke_shortcode( "bw_show_googlemap", "alt=2", "Display a Googlemap for your alternative address." ); bw_invoke_shortcode( "bw_directions", "alt=2", "Display directions to the alternative address." ); bw_flush(); } */ /* function oiku_menu_box() – Implement "oik_menu_box" action for oik-user */ /* function oiku_user_settings() – Display/process the Copy options form */ /* function oiku_copy_user_settings() – Handle Copy options form */ /* function oiku_copy_settings_to_user() – Copy oik options for alt= to user= */ /* function oiku_set_user_contact_user_meta() – Set the value of a user contact field from the $options array */ /* function oiku_simplify_social() – Return the block of text after the last slash, if there is one, for the selected $social field in $options */ /* function oiku_manage_user_columns() – Implement "manage_user_columns" for oik-user */ /* function oiku_manage_users_custom_column() – Implement "manage_users_custom_column" for oik-user */ /* * @TODO - someday **?** @link http://wpquestions.com/question/show/id/8170 function status_column_sortable($columns) { $custom = array( 'status' => 'status' ); return wp_parse_args( $custom, $columns); } add_filter( 'manage_users_sortable_columns', 'status_column_sortable' ); function status_column_orderby( $vars ) { if ( isset( $vars['orderby'] ) && 'status' == $vars['orderby'] ) { $vars = array_merge( $vars, array( 'meta_key' => 'status', 'orderby' => 'meta_value' ) ); } return $vars; } add_filter( 'request', 'status_column_orderby' ); */View on GitHub