Hot answers tagged functions
What I was looking for was transition_post_status. The documentation can be found here. What I did was to add one more filter add_filter('transition_post_status','myFunction');
I see a couple of problems here. This line if (!is_admin() || 'default' != $domain) return $translated; returns the Howdy right back unchanged if is_admin is false - which it is if you're not in the dashboard. Also, you're running your filter callback on gettext. This means it will be run every time some internationalized content is used, which is ...
If you mean to attach it to any and all $_POST inputs in WordPress that's probably falls under Bad Ideas. WordPress has some kinks in how it works with that data (for example it emulates "magic quotes" mode, long deprecated in PHP itself) and some cases of POST in WP are extremely heavy (saving menus in admin for example). You can (and should) sanitize data ...
It's outputting the word Array which is self explanatory. Instead of direct echoing it, you will need to turn the array into a string. Try implode, something like: Tags: <?php $my_theme = wp_get_theme(); echo implode(', ', $my_theme->get( 'Tags' ) ); ?>
Only top voted, non community-wiki answers of a minimum length are eligible