Skip Navigation

[Résolu] ToolSet Settings Custom Code – How To Define Name In Code.

This support ticket is created Il y a 5 années et 7 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Marqué : 

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Team DNK Il y a 5 années et 7 mois.

Assisté par: Waqar.

Auteur
Publications
#1227476

Hey Support,

I am not sure if this is a feature request or this already exists but we need to define the custom code information in the PHP file. We like that the "description" already exists in this way by being defined in the default comment tag. How can we define the (name, slug, is_active, run_mode, and run_contexts) within our php file in the same manner?

We work in a MultiSite installation so having a global way to manage the Custom Code snippet is a priority for us. Any help would be greatly appreciated.

Thanks,
Bernard

#1227838

Hi Bernard,

Thanks for asking! I'd be happy to help.

I'm afraid, currently, there is no public API or functions available to programmatically get or set the information fields for the custom code snippets.

You're welcome to submit this as a feature request at:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Meanwhile, if your goal is to manage the custom code snippets across a Multisite network, you can also check out the third-party plugin "Code Snippets":
https://wordpress.org/plugins/code-snippets/

regards,
Waqar

#1229475

Thank you for the response. Since there is no available solution at the moment, our needs have been added as a feature request.