-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow themes and plugins to add their own custom content hooks #40
Comments
Comment by johnclause Hi Tim, this is an interesting idea - thank you. I am also trying to implement the best possible way to integrate and that is being developed like every day. Have you seen the code of plugins: https://github.com/qTranslate-Team/woocommerce-qtranslate-x The last one, events-made-easy, is incomplete, but it has the most of comments and explanations, since I was preparing it for the author of Events Made Easy (https://wordpress.org/plugins/events-made-easy/) to finish the code. The idea is that, eventually, users and plugin authors will be able to submit a custom configuration as an xml or json text or file, which will describe the fields need to be translatable. For now, we code the array needed and submit it through a hook. I believe you can achieve what you need with already existent hooks, following the pattern of the plugins mentioned above. Please, take a look and let me know what you think. |
Comment by funkjedi Brilliant worked like a charm. |
Comment by johnclause Hi Tim, were you able to complete all what you need? Which plugin is that? Should I listed it on the Description page as an example of integration? |
Comment by funkjedi The |
Comment by johnclause I listed it on the description page. I believe you have made many people happy with this plugin! Thank you. |
Issue by funkjedi
Wednesday Feb 25, 2015 at 09:00 GMT
Originally opened as qTranslate-Team/qtranslate-x#40
Trigger a custom event when
addCustomContentHooks
is called to allow themes and plugin developers to add their own custom content hooks.Usage example:
funkjedi included the following code: https://github.com/qTranslate-Team/qtranslate-x/pull/40/commits
The text was updated successfully, but these errors were encountered: