filesystem_method_file

filesystem_method_file

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.6.2

apply_filters('filesystem_method_file') is found 1 times:

  • /wp-admin/includes/file.php line 2199
    		 *
    		 * @param string $path   Path to the specific filesystem method class file.
    		 * @param string $method The filesystem method to use.
    		 */
    		$abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method );
    
    		if ( ! file_exists( $abstraction_file ) ) {
    			return;
    		}
    
    		require_once $abstraction_file;