Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: ms_user_list_site_actions

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
236                                              if ( get_blog_status( $val->userblog_id, 'mature' ) == 1 )
237                                                   $class .= 'site-mature ';
238                                              if ( get_blog_status( $val->userblog_id, 'deleted' ) == 1 )
239                                                   $class .= 'site-deleted ';
240                                              if ( get_blog_status( $val->userblog_id, 'archived' ) == 1 )
241                                                   $class .= 'site-archived ';
242
243                                              $actions['view'] = '<a class="' . $class . '" href="' .  esc_url( get_home_url( $val->userblog_id ) )  . '">' . __( 'View' ) . '</a>';
244
245                                              $actions = apply_filters('ms_user_list_site_actions', $actions, $val->userblog_id);
246
247                                              $i=0;
248                                              $action_count = count( $actions );
249                                              foreach ( $actions as $action => $link ) {
250                                                   ++$i;
251                                                   ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
252                                                   echo "<span class='$action'>$link$sep</span>";
253                                              }
254                                              echo '</small></span><br/>';