Created
May 25, 2022 05:32
-
-
Save grantalltodavid/1bb382b4cf25ba379074f21511ed9920 to your computer and use it in GitHub Desktop.
Sliced Invoices: example of how to add "non-cloneable post metas"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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