diff --git a/.github/workflows/readme-update.yml b/.github/workflows/readme-update.yml deleted file mode 100644 index 85240460..00000000 --- a/.github/workflows/readme-update.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Plugin asset/readme update -on: - push: - branches: - - master - workflow_dispatch: -jobs: - trunk: - name: Push to trunk - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: WordPress.org plugin asset/readme update - uses: 10up/action-wordpress-plugin-asset-update@stable - env: - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - SLUG: tatum - ASSETS_DIR: assets - README_NAME: README.txt \ No newline at end of file diff --git a/admin/class-tatum-admin.php b/admin/class-tatum-admin.php index 21ed2417..edfc7a5b 100644 --- a/admin/class-tatum-admin.php +++ b/admin/class-tatum-admin.php @@ -523,6 +523,7 @@ public function obtain_contract_address() { public function change_post_columns($defaults) { $defaults['status'] = 'Status'; + $defaults['chain'] = 'Chain'; unset($defaults['date']); return $defaults; @@ -532,6 +533,9 @@ public function fill_custom_columns($column_name, $post_id) { if ($column_name == 'status') { echo $this->format_api_key_status(get_post_meta($post_id, 'status', true)); } + if ($column_name == 'chain') { + echo get_post_meta($post_id, 'chain', true); + } } public function format_api_key_status( $status ) { @@ -736,7 +740,7 @@ public function mint_token($post, $new_status, $tatum_token_id, $tatum_url) { } if (!isset($tatum_url) || $tatum_url === '' || filter_var($tatum_url, FILTER_VALIDATE_URL) === false) { - return $this->add_flash_notice('URL Metadata of your NFT token should be valid ULR!', "error"); + return $this->add_flash_notice('URL Metadata of your NFT token should be valid URL!', "error"); } $active_key = $this->get_active_api_key();