WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
234 | if ( get_blog_status( $val->userblog_id, 'mature' ) == 1 ) |
235 | $class .= 'site-mature '; |
236 | if ( get_blog_status( $val->userblog_id, 'deleted' ) == 1 ) |
237 | $class .= 'site-deleted '; |
238 | if ( get_blog_status( $val->userblog_id, 'archived' ) == 1 ) |
239 | $class .= 'site-archived '; |
240 |
|
241 | $actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . '</a>'; |
242 |
|
243 | $actions = apply_filters('ms_user_list_site_actions', $actions, $val->userblog_id); |
244 |
|
245 | $i=0; |
246 | $action_count = count( $actions ); |
247 | foreach ( $actions as $action => $link ) { |
248 | ++$i; |
249 | ( $i == $action_count ) ? $sep = '' : $sep = ' | '; |
250 | echo "<span class='$action'>$link$sep</span>"; |
251 | } |
252 | echo '</small></span><br/>'; |