Skip to content

Instantly share code, notes, and snippets.

@grantalltodavid
Created May 25, 2022 05:32
Show Gist options
  • Save grantalltodavid/1bb382b4cf25ba379074f21511ed9920 to your computer and use it in GitHub Desktop.
Save grantalltodavid/1bb382b4cf25ba379074f21511ed9920 to your computer and use it in GitHub Desktop.
Sliced Invoices: example of how to add "non-cloneable post metas"
add_filter( 'sliced_invoices_non_cloneable_post_metas', 'si20220524_add_non_cloneable_post_metas' );
function si20220524_add_non_cloneable_post_metas( $non_cloneable_post_metas ) {
$non_cloneable_post_metas[] = '_sliced_invoice_created';
$non_cloneable_post_metas[] = '_sliced_invoice_due';
return $non_cloneable_post_metas;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment