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 |
---|---|
1178 | * @since 4.6.0 The `$context` parameter default changed from `false` to an empty string. |
1179 | * |
1180 | * @param array $types Types of connections. |
1181 | * @param array $credentials Credentials to connect with. |
1182 | * @param string $type Chosen filesystem method. |
1183 | * @param object $error Error object. |
1184 | * @param string $context Full path to the directory that is tested |
1185 | * for being writable. |
1186 | */ |
1187 | $types = apply_filters( 'fs_ftp_connection_types', $types, $credentials, $type, $error, $context ); |
1188 |
|
1189 | ?> |
1190 | <form action="<?php echo esc_url( $form_post ) ?>" method="post"> |
1191 | <div id="request-filesystem-credentials-form" class="request-filesystem-credentials-form"> |
1192 | <?php |
1193 | // Print a H1 heading in the FTP credentials modal dialog, default is a H2. |
1194 | $heading_tag = 'h2'; |
1195 | if ( 'plugins.php' === $pagenow || 'plugin-install.php' === $pagenow ) { |
1196 | $heading_tag = 'h1'; |