1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
class GridGenerator{
...
  public function save($post_id){
    ...
    add_filter('content_save_pre', array(&$this, 'render_grid'))
  }
  function render_grid(){
    ...
  }
}

$xl_grid = new GridGenerator();

add_action('save_post',array($xl_grid,'save') );
?>