Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: plugin_action_links

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
132           $plugin_data['Title']       = wp_kses($plugin_data['Title'], $plugins_allowedtags);
133           $plugin_data['Version']     = wp_kses($plugin_data['Version'], $plugins_allowedtags);
134           $plugin_data['Description'] = wp_kses($plugin_data['Description'], $plugins_allowedtags);
135           $plugin_data['Author']      = wp_kses($plugin_data['Author'], $plugins_allowedtags);
136           $author = ( empty($plugin_data['Author']) ) ? '' :  ' <cite>' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.</cite>';
137
138           if ( $style != '' )
139                $style = ' class="' . $style . '"';
140
141           $action_links = apply_filters('plugin_action_links', $action_links, $plugin_file, $plugin_info);
142
143           echo "
144      <tr$style>
145           <td class='name'>{$plugin_data['Title']}</td>
146           <td class='vers'>{$plugin_data['Version']}</td>
147           <td class='desc'><p>{$plugin_data['Description']}$author</p></td>
148           <td class='status'>";
149           if ( is_plugin_active($plugin_file) )
150                echo  __('<span class="active">Active</span>');