Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- Plugin Name: Tax Rate Upload
- Plugin URI: http://wordpress.org/extend/plugins/tax-rate-upload/
- Description: This is a plugin to upload a tax rate excell sheet and populate woocommerce zip code tax rates.
- Author: Adam Bowen
- Version: 1.0
- Author URI: http://www.pnw-design.com/
- */
- add_action( 'admin_menu', 'my_plugin_menu' );
- function my_plugin_menu() {
- add_options_page( 'My Plugin Options', 'Tax Rate Upload', 'manage_options', 'my-unique-identifier', 'my_plugin_options' );
- }
- function my_plugin_options() {
- if ( !current_user_can( 'manage_options' ) ) {
- wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
- }
- ?>
- <div class="wrap">
- <p>Download your states tax rate table from <a href="http://www.taxrates.com/">taxrates.com</a> and upload it here.</p>
- </div>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement