Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: explain_nonce_{$verb}-{$noun}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1169                     if ( 'use_id' != $lookup )
1170                          $object = call_user_func($lookup, $object);
1171                     return sprintf($trans[$verb][$noun][0], $object);
1172                } else {
1173                     return $trans[$verb][$noun][0];
1174                }
1175           }
1176      }
1177
1178      return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __('Are you sure you want to do this?'), $matches[4] );
1179 }
1180
1181 function wp_nonce_ays($action) {
1182      global $pagenow, $menu, $submenu, $parent_file, $submenu_file;
1183
1184      $adminurl = get_option('siteurl') . '/wp-admin';
1185      if ( wp_get_referer() )
1186           $adminurl = clean_url(wp_get_referer());
1187