Skip Navigation

[Resolved] ToolSet Settings Custom Code – How To Define Name In Code.

This support ticket is created 5 years, 8 months ago. 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.

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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Team DNK 5 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#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.