downloadlink
// Add Shortcode function display_download_link( $atts , $content = null ) { // Attributes $atts = shortcode_atts( array( 'filename' => '', ), $atts ); return '< a href"' . get_home_url . '/?file=" . $atts['filename'] . '">' . $content . '</a>'; } add_shortcode( 'dlfile', 'display_download_link' );