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 |
|---|---|
| 989 | if ( !is_array( $closed ) ) { |
| 990 | $classes = array( '' ); |
| 991 | } else { |
| 992 | $classes = in_array( $id, $closed ) ? array( 'closed' ) : array( '' ); |
| 993 | } |
| 994 | } else { |
| 995 | $classes = array( '' ); |
| 996 | } |
| 997 | |
| 998 | $classes = apply_filters( "postbox_classes_{$page}_{$id}", $classes ); |
| 999 | return implode( ' ', $classes ); |
| 1000 | } |
| 1001 | |
| 1002 | /** |
| 1003 | * {@internal Missing Short Description}} |
| 1004 | * |
| 1005 | * @since 2.5.0 |
| 1006 | * |
| 1007 | * @param int|object $id Post ID or post object. |