Description
Create a link to download the WordPress theme Note: For the download to actually work this now requires the theme version, which we may not have.So currently we'll have to just create a link to the theme's home page. Using type: None in the mean time.
Usage
_oikth_download_wordpressversion( $post, $slug );Parameters
- $post
- ( mixed ) required –
- $slug
- ( mixed ) required –
Returns
voidSource
File name: oik-themes/shortcodes/oik-themes.phpLines:
1 to 9 of 9
function _oikth_download_wordpressversion( $post, $slug ) { //$link = "http://downloads.wordpress.org/theme/$slug.zip"; //$link = "http://wordpress.org/themes/download/$slug.zip"; $link = "http://wordpress.org/themes/$slug"; $text = __( "Download" ); $text .= " "; $text .= $slug; art_button( $link, $text, null, 'download' ); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Calls
Call hooks
API Letters:
