Programmatically Insert Code Block Pro Content Using Shortcode or Tag
-
Hi,
Is there any shortcode option or tag option available to programmatically insert content into the Code Block Pro plugin?
For example, I’d like to dynamically add code snippets like this:
[code-block-pro]<span>..<span class="hljs-selector-class">.content</span>...<span class="hljs-selector-attr">[/code-block-pro]The goal is to create or update code blocks programmatically (via PHP or REST API) instead of manually adding them in the editor.
Please let me know if the plugin provides a shortcode or another method to handle this.Thanks!
The topic ‘Programmatically Insert Code Block Pro Content Using Shortcode or Tag’ is closed to new replies.