code_snippets/export/filename

code_snippets/export/filename

Hook Type: filter

See hook in core

Displaying hooks found in version: code-snippets.2.13.3

apply_filters('code_snippets/export/filename') is found 1 times:

  • /php/import-export.php line 195
    		$title = strtolower( get_bloginfo( 'name' ) );
    	}
    
    	$filename = "{$title}.code-snippets.{$format}";
    	$filename = apply_filters( 'code_snippets/export/filename', $filename, $title );
    
    	/* Set HTTP headers */
    	header( 'Content-Disposition: attachment; filename=' . sanitize_file_name( $filename ) );
    
    	if ( '' !== $mime_type ) {
    		header( "Content-Type: $mime_type; charset=" . get_bloginfo( 'charset' ) );