Available on Tokens with Variant: 0.0.5
{
"process": "TOKEN_PROCESS",
"data": "",
"tags": [
import imageCompression from "browser-image-compression" | |
const options = { | |
maxSizeMB: 0.1, // 100KB | |
maxWidthOrHeight: 512, | |
useWebWorker: true | |
} | |
const file: File |
[{ | |
"id": 0, | |
"description": "My NFT", | |
"external_url": "https://forum.openzeppelin.com/t/create-an-nft-and-deploy-to-a-public-testnet-using-truffle/2961", | |
"image": "https://placekitten.com/640/640", | |
"name": "My NFT 0" | |
},{ | |
"id": 1, | |
"description": "My NFT", | |
"external_url": "https://forum.openzeppelin.com/t/create-an-nft-and-deploy-to-a-public-testnet-using-truffle/2961", |
function cl_remove_slug( $post_link, $post, $leavename ) { | |
if ( ('post_slug' != $post->post_type) || 'publish' != $post->post_status ) { | |
return $post_link; | |
} | |
$post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link ); | |
return $post_link; | |
} | |
add_filter( 'post_type_link', 'cl_remove_slug', 10, 3 ); |