feat: wire file transport services
This commit is contained in:
@@ -55,4 +55,15 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2><?php echo esc_html__( 'File Package Import', 'wp-content-sync' ); ?></h2>
|
||||
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" enctype="multipart/form-data">
|
||||
<input type="hidden" name="action" value="wpcs_import_package" />
|
||||
<?php wp_nonce_field( 'wpcs_import_package', 'wpcs_import_package_nonce' ); ?>
|
||||
<p>
|
||||
<label for="wpcs-package-file"><?php echo esc_html__( 'Package JSON file', 'wp-content-sync' ); ?></label>
|
||||
<input id="wpcs-package-file" type="file" name="wpcs_package_file" accept="application/json,.json" />
|
||||
</p>
|
||||
<?php submit_button( __( 'Validate Package', 'wp-content-sync' ), 'secondary' ); ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user