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 |
---|---|
864 | * |
865 | * @param string $form_post the URL to post the form to |
866 | * @param string $type the chosen Filesystem method in use |
867 | * @param boolean $error if the current request has failed to connect |
868 | * @param string $context The directory which is needed access to, The write-test will be performed on this directory by get_filesystem_method() |
869 | * @param string $extra_fields Extra POST fields which should be checked for to be included in the post. |
870 | * @return boolean False on failure. True on success. |
871 | */ |
872 | function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false, $extra_fields = null) { |
873 | $req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields ); |
874 | if ( '' !== $req_cred ) |
875 | return $req_cred; |
876 |
|
877 | if ( empty($type) ) |
878 | $type = get_filesystem_method(array(), $context); |
879 |
|
880 | if ( 'direct' == $type ) |
881 | return true; |
882 |
|