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
1277                     if ( 'use_id' != $lookup )
1278                          $object = call_user_func($lookup, $object);
1279                     return sprintf($trans[$verb][$noun][0], $object);
1280                } else {
1281                     return $trans[$verb][$noun][0];
1282                }
1283           }
1284      }
1285
1286      return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __('Are you sure you want to do this?'), $matches[4] );
1287 }
1288
1289 function wp_nonce_ays($action) {
1290      global $pagenow, $menu, $submenu, $parent_file, $submenu_file;
1291
1292      $adminurl = get_option('siteurl') . '/wp-admin';
1293      if ( wp_get_referer() )
1294           $adminurl = clean_url(wp_get_referer());
1295