Hi @lotfreeman ,
Curently, Content Control has no option to customise the name of the shortcode.
Changing the name of the shortcode would prevent Content Control from working as expected.
That is because every shortcode is unique to its plugin/function.
Let us know if that helps.
You can implement this feature in the future: change the code prefix?
Hi @lotfreeman ,
Generally, shortcodes are pre-configured in code. As a result, they have fixed configurations.
If you would like to contribute to or explore the code for Content Control, you may check out the GitHub repository.
Here’s a helpful guide on how shortcodes work.
Let us know if you have more questions.
@lotfreeman An alternative is to simply register your own custom shortcode with WordPress and point the handler callback to the class we use, though v2 is about to release and the code needed would change:
https://github.com/code-atlantic/content-control/blob/develop/classes/Controllers/Shortcodes.php#L28C10-L28C10
In your case you would have to replace $this, with a reference to that class since our plugin has already loaded it, this is only usable for v2
add_shortcode( 'some_code', [ \ContentControl\plugin()->get_controller('Shortcodes'), 'content_control' ] );
^^ PS Haven’t tested this, purely theoretical.