feat: wire file transport services

This commit is contained in:
Keith Solomon
2026-04-26 20:37:35 -05:00
parent 76b614e9e3
commit 90b56e13bb
4 changed files with 86 additions and 0 deletions
+11
View File
@@ -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>