Changeset 464484
- Timestamp:
- 11/18/2011 04:31:59 AM (14 years ago)
- File:
-
- 1 edited
-
content-molecules/trunk/emc2_content_molecules.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
content-molecules/trunk/emc2_content_molecules.php
r464462 r464484 147 147 148 148 static function init_admin() { 149 $mod_actions = array('deleted_post', 'trashed_post', 'edit_post', 'publish_post', 'publish_future_post'); 150 foreach($mod_actions as $action) { 151 add_filter($action, array('EMC2_Molecule', 'reset_transient_cache')); 152 } 153 149 154 //save custom properties on this custom post type 150 155 if (@$_GET['post_type'] == EMC2_Molecule::$props['post_type']) { 151 156 add_action('save_post', array('EMC2_Molecule', 'save_post_handler'), 10, 2); //pass post_obj to call back 152 153 $mod_actions = array('deleted_post', 'trashed_post', 'edit_post', 'publish_post', 'publish_future_post');154 foreach($mod_actions as $action) {155 add_filter($action, array('EMC2_Molecule', 'reset_transient_cache'));156 }157 157 158 158 //customize columns of molecule list view
Note: See TracChangeset
for help on using the changeset viewer.