Advertisements

install_plugins_upload

Definition:
function install_plugins_upload( $page = 1 ) {}

Upload from zip

Parameters

  • string $page

Source code

function install_plugins_upload( $page = 1 ) {

?>

	<h4><?php _e('Install a plugin in .zip format') ?></h4>

	<p class="install-help"><?php _e('If you have a plugin in a .zip format, you may install it by uploading it here.') ?></p>

	<form method="post" enctype="multipart/form-data" action="<?php echo self_admin_url('update.php?action=upload-plugin') ?>">

		<?php wp_nonce_field( 'plugin-upload') ?>

		<label class="screen-reader-text" for="pluginzip"><?php _e('Plugin zip file'); ?></label>

		<input type="file" id="pluginzip" name="pluginzip" />

		<input type="submit" class="button" value="<?php esc_attr_e('Install Now') ?>" />

	</form>

<?php

}

2037

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: