Last active
September 8, 2023 11:52
-
-
Save lgladdy/67e23e5bc1a74a9675e36f5e317510cd to your computer and use it in GitHub Desktop.
acf_blocks_parse_node_attr demo
This file contains hidden or 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
acf.addFilter('acf_blocks_parse_node_attr', function( currentValue, nodeAttr ){ | |
if (nodeAttr.name.startsWith('v-')) { | |
return { name: nodeAttr.name, value: nodeAttr.value }; | |
} | |
return currentValue; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment