function P2_Comment_List_Creator() { parent::P2_List_Creator(); // Parse everything on display add_filter( 'comment_text', array( $this, 'comment_text' ), 11, 2 ); // Renormalize task list meta into ASCII x's and o's add_filter( 'p2_get_comment_content', array( $this, 'unparse_comment_list' ), 10, 2 ); add_action( 'edit_comment', array( $this, 'delete_all_item_data' ) ); // Parse UL/OL on save add_filter( 'pre_comment_content', array( $this, 'parse_list' ) ); }
function p2_list_creator($content) { $list_creator = new P2_List_Creator(); return $list_creator->do_list($content); }