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 |
---|---|
712 | 'url' => '', |
713 | 'package' => '', |
714 | 'requires' => $theme->get( 'RequiresWP' ), |
715 | 'requires_php' => $theme->get( 'RequiresPHP' ), |
716 | ); |
717 | } |
718 |
|
719 | $type = 'theme'; |
720 | /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
721 | $auto_update_forced = apply_filters( "auto_update_{$type}", null, $auto_update_filter_payload ); |
722 |
|
723 | $prepared_themes[ $slug ] = array( |
724 | 'id' => $slug, |
725 | 'name' => $theme->display( 'Name' ), |
726 | 'screenshot' => array( $theme->get_screenshot() ), // @todo Multiple screenshots. |
727 | 'description' => $theme->display( 'Description' ), |
728 | 'author' => $theme->display( 'Author', false, true ), |
729 | 'authorAndUri' => $theme->display( 'Author' ), |
730 | 'tags' => $theme->display( 'Tags' ), |