Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.21, api, developer, development
- This topic has 1 reply, 2 voices, and was last updated 8 years, 1 month ago by
Steven Zahm.
-
AuthorPosts
-
06/27/2018 at 6:31 am #466404
Robert Gartside
ParticipantIs there a way we can build an add-on for Connections? There are some functions i need but i do not want them to get over-written if there is a plugin update.
So i need to know if there is a API connection i can use or is there child templates or child function templates i can use?
example: I want to create additional dropdown features on the search. I want a dropdown for Country and then type a city name. so the whole search would be Category+country+cityname
We can build the functions ourselves it but we dont want it to get overwritten.
Another example: I am going to add the function “near me” to the short codes so that when my users load the page, it auto shows businesses near them.
If i add this function i dont want it to get over written when the plugin updates and the other extensions update.
06/27/2018 at 9:50 am #466423Steven Zahm
Keymaster@ Robert
Connections has around 500 actions/filters available. You can use these just like you do in WordPress. It’s thru these actions/filters that all of Connections addons are built.
There are also API/s for adding custom fields, managing settings, registering templates, sending email and logging. There is no web based documentation for these, but, since you have the Pro Pack you can reference the code of those addons. I write a lot of in code documentation. The web based documentation available can be found on the bottom of the documentation page.
So, to write an addon which will not get overwritten, create a new plugin for WP. For Connections addons I like loading them using the
plugins_loadedat priority11since Connections will be loaded. You can check for the existence of theConnections_Directoryclass.As for child templates, there are ways to override template files so your changes will not be overwritten.
Hope this helps!
-
AuthorPosts
- You must be logged in to reply to this topic.
