在WordPress中创建可重用代码标记的方法

在WordPress中创建可重用代码标记的方法,wordpress,code-snippets,elementor,custom-tag,Wordpress,Code Snippets,Elementor,Custom Tag,我有一个自定义代码: [private role = "none" recipient="SampleUser"] //Insert Text [/private] 我是否可以将这个[私有](其全部)动态化,这样用户就不必将整个代码写在Elementor编辑器上,只需单击一下就可以显示出来

我有一个自定义代码:

[private role = "none" recipient="SampleUser"]

//Insert Text

[/private]

我是否可以将这个[私有](其全部)动态化,这样用户就不必将整个代码写在Elementor编辑器上,只需单击一下就可以显示出来