[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

oik_user_profile_filters() – Identify the other action hooks to remove

Description

Identify the other action hooks to remove

The 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
We may also want to remove
  • Additional Capabilities

Usage

oik_user_profile_filters();

Parameters

Returns

void

Source

File name: oik-user/admin/oik-user.php
Lines:
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

      Call hooks

      Function name: oik_user_profile_filters
      Plugin ref: oik user
      Version: 0.9.1
      Sourcefile: admin/oik-user.php
      File ref: admin/oik-user.php
      Deprecated?: No
      API Letters: F,O,P,U

      Published: March 14, 2017 | Last updated: March 14, 2017

      Information

      Function name: oik_user_profile_filters
      Plugin ref: oik user
      Version: 0.9.1
      Sourcefile: admin/oik-user.php
      File ref: admin/oik-user.php
      Deprecated?: No
      API Letters: F,O,P,U

      Recent plugin updates

      oik-weight-zone-shipping v0.2.13 oik-weight-zone-shipping v0.2.13 has been tested with WooCommerce 10.1.2 and WordPress 6.8.2 ...
      SB Children Block v1.3.0 Upgrade to SB Children Block v1.3.0 for support for PHP 8.3 and PHP 8.4  ...
      oik v4.15.3 Update to oik v4.15.3 for a couple of security fixes. Tested with WordPress 6.8.2 ...
      oik-privacy-policy v1.4.9 Update to oik-privacy-policy v1.4.9 for a security fix. Tested with WordPress 6.8.2 and PHP 8.3 and PHP 8.4 ...
      oik-nivo-slider v1.17.0 oik-nivo-slider v1.17.0 introduces the Nivo slider block - oik-nivo-slider/nivo. ...

      Plugins

      • All Plugins
      • oik base plugin
      • FREE oik plugins
      • WordPress plugins
      • Premium oik plugins

      Themes

      • FREE themes
      • Bespoke themes
      • Premium themes

      Blocks

      • All Blocks
      • Block examples
      • About Blocks

      Shortcodes

      • All Shortcodes
      • Shortcode examples
      • About Shortcodes

      Reference

      • About APIs
      • All APIs
      • All Classes
      • All Files
      • All Hooks

      Support

      • Contact
      • Cookies policy
      • Get API key
      • Privacy
      • Request support
      • Sitemap
      • Stay informed
      • Terms and Conditions
      oik-plugins
      Email: herb@bobbingwide.com

      Weight shipping plugins

      Find out which cart weight shipping plugin you need for your WooCommerce site.
      Which cart weight based plugin do I need?

      Site:  www.oik-plugins.com
      © Copyright oik-plugins 2011-2025. All rights reserved.


      Website designed and developed by Herb Miller of Bobbing Wide
      Proudly powered by WordPress and oik-plugins

      WordPress version: 6.8.3

      Gutenberg version: 21.7.0

      PHP version: 8.2.29