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
1176                     if ( 'use_id' != $lookup )
1177                          $object = call_user_func($lookup, $object);
1178                     return sprintf($trans[$verb][$noun][0], $object);
1179                } else {
1180                     return $trans[$verb][$noun][0];
1181                }
1182           }
1183      }
1184
1185      return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __('Are you sure you want to do this?'), $matches[4] );
1186 }
1187
1188 function wp_nonce_ays($action) {
1189      global $pagenow, $menu, $submenu, $parent_file, $submenu_file;
1190
1191      $adminurl = get_option('siteurl') . '/wp-admin';
1192      if ( wp_get_referer() )
1193           $adminurl = wp_get_referer();
1194