/** * */ protected function _addDynamicPlaceholders() { $dynamicPlaceholders = array(); $group = 'dynamic'; foreach (IfwPsn_Wp_Proxy_Taxonomy::getCategoriesNames() as $category) { $dynamicPlaceholders['post_category-' . $category] = implode(', ', IfwPsn_Wp_Proxy_Post::getAttachedCategoriesNames($this->_post, $category)); } foreach (IfwPsn_Wp_Proxy_Taxonomy::getTagsNames() as $tag) { if ($tag == 'post_format') { continue; } $dynamicPlaceholders['post_tag-' . $tag] = implode(', ', IfwPsn_Wp_Proxy_Post::getAttachedTagsNames($this->_post, $tag)); } // custom keys if (!$this->isMockUpPost()) { foreach (IfwPsn_Wp_Proxy_Post::getCustomKeys($this->_post) as $key) { $dynamicPlaceholders['post_custom_field-' . $key] = IfwPsn_Wp_Proxy_Post::getCustomKeyValue($key, $this->_post); } } foreach (IfwPsn_Wp_Proxy_Filter::apply('psn_notification_dynamic_placeholders', $dynamicPlaceholders) as $key => $value) { $this->addPlaceholder($key, $value, $group); } }