How Can We Help?

< Back
Print

Here you can find hooks that can be used to customize the NFT WordPress Plugin Kit plugin behaviour.

META INFO

The meta information object can be modified before it is written to the IPFS.

$token_object = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_get_meta_info_object'
  , $token_object
  , $product_id
);

$image_file_path = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_get_original_image_url'
  , $image_file_path
  , $product_id
  , $image_id
);

$image_file_path = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_gallery_get_original_image_url'
  , $image_file_path
  , $product_id
  , $image_id
);
$external_url = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_get_external_url'
  , $external_url
  , $product_id
);
$name = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_get_name'
  , $name
  , $product_id
);
$description = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_get_description'
  , $description
  , $product_id
);

IPFS

Fine grained IPFS settings

$imageURI = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_get_ipfs_uri'
  , $imageURI
);
$meta = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_ipfs_get_files_upload_metadata'
  , $meta
  , $erc721_ipfs_pinning_service_provider
);
$hash = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_ipfs_get_cid_from_response'
  , $hash
  , $erc721_ipfs_pinning_service_provider
  , $respons
);
$method = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_ipfs_get_unpin_method_method'
  , $method
  , $erc721_ipfs_pinning_service_provider
);
$url = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_ipfs_get_unpin_method_url'
  , $url
  , $erc721_ipfs_pinning_service_provider
);
$url = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_ipfs_get_pin_method_url'
  , $url
  , $erc721_ipfs_pinning_service_provider
);
$url = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_ipfs_get_pin_json_method_url'
  , $url
  , $erc721_ipfs_pinning_service_provider
);
$body = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_ipfs_get_pin_json_body'
  , $body
  , $erc721_ipfs_pinning_service_provider
  , $tokenID
  , $json
);

PRODUCT LOOKUP

These hooks are called when product lookup is performed by the tokenID specified.

$post_types_supported = apply_filters('cryptocurrency_product_for_woocommerce_erc721_get_post_types_supported', array(
  'product',
  'product_variation',
  'auction',
));
// @see https://wordpress.org/support/article/post-status/
$post_status_supported = apply_filters('cryptocurrency_product_for_woocommerce_erc721_get_post_status_supported', array(
  'publish',
  'future',
  'draft',
  'pending',
  // 'private',
  // 'trash',
));

OWNER PAGE URL

This hook are called when token owner page URL is requested in the Trading history for example.

$fromVendorURL = apply_filters(
  'cryptocurrency_product_for_woocommerce_erc721_get_token_owner_page_url'
  , $fromAddressPath
  , $from_user_id
);

Next NFT Marketplace – HOWTO
Categories: