Description
Identify the other action hooks to removeThe action invoked to display other fields is "show_user_profile". During run time execution we need to run oiku_show_user_profile_selected() first so that it can disable the hooks that we don't want to have run. This would include:
- WordPress SEO settings
- oik user options
- WP-Members additional fields
- others that I'm not yet aware of
- Additional Capabilities
Usage
oik_user_profile_filters();Parameters
Returns
voidSource
File name: oik-user/admin/oik-user.phpLines:
1 to 26 of 26
function oik_user_profile_filters() { global $wp_filter; $fields = array(); $filters = bw_array_get( $wp_filter, "show_user_profile", null ); foreach ( $filters as $priority => $hooks ) { foreach ( $hooks as $key => $hook ) { bw_trace2( $hook, "hook", false ); $function = oiku_get_function_as_string( $hook['function'] ); $fields["$priority $function"] = $hook['function']; } } $option = "bw_user_filters"; $options = bw_form_start( $option, "oik_user_filters" ); foreach ( $fields as $field => $data ) { //bw_trace2( $data ); $options[$field] = bw_array_get( $options, $field, true ); bw_checkbox_arr( $option, $field, $options, $field ); } etag( "table" ); p( "This table lists the action hooks that plugins have registered to be run when displaying the user profile" ); p( "Uncheck the action hooks that you do not want to have run, then click on Update." ); p( isubmit( "ok", "Update", null, "button-primary" ) ); etag( "form" ); bw_flush(); }View on GitHub
Called by
Invoked by
Calls
1 to 9 of 9
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_checkbox_arr() – Create a checkbox for an array options field
- bw_flush() – Use bw_flush() to echo the contents of $bwecho then empty it
- bw_form_start() – Start of a WordPress form for options fields
- bw_trace2() – Trace $value to the trace log file if tracing is active
- etag() – Output an end tag
- isubmit() – Create a submit button
- oiku_get_function_as_string() – Return the function name as a string
- p() – Output a paragraph of translatable text
