Add a hook for customizing the TSML configuration #1766
Replies: 2 comments 5 replies
-
|
If the maintainers like this idea, I would be happy to submit a PR. |
Beta Was this translation helpful? Give feedback.
-
|
ok i think the history on this was we were using sounds like the way we recommend people customize types (using functions.php) still works, but you prefer to use a code snippets plugin and had to change your config after we made that change. the request is to create a new hook and documentation so it's clearer how to customize TSML using this plugin? could you say more about this:
to my knowledge we don't recommend people use hooks to make customization in our FAQ - could you give a specific example of some documentation that should be changed? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
(The history of this idea is in #1590.)
Different releases of TSML have set up the TSML configuration at different points in the request/response lifecycle. This makes it difficult to use one of the standard Wordpress hooks to do TSML custom configuration reliably.
I suggest that TSML add a custom hook (with
do_action) that runs just after TSML has initialized its configuration but before it runs any code that affects the meeting database, and that this hook be documented. That way clients can use the hook to do their customization, and not worry about changes in lifecycle.As part of this change, I would also suggest that the configuration instructions in the FAQ change to place all the custom configuration code in an action on the new hook. This would eliminate the need to check for the definition of the various functions, because the hook would never be invoked unless the TSML plugin was loaded (and the functions defined).
Beta Was this translation helpful? Give feedback.
All reactions