Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/25/2011 08:45:04 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Allow just-in-time manipulation of topic and reply data before creating or editing them. See #1477.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-functions.php

    r3180 r3222  
    190190                'post_type'    => bbp_get_topic_post_type()
    191191            );
     192
     193            // Just in time manipulation of topic data before being created
     194            $topic_data = apply_filters( 'bbp_new_topic_pre_insert', $topic_data );
    192195
    193196            // Insert topic
     
    444447            );
    445448
     449            // Just in time manipulation of topic data before being edited
     450            $topic_data = apply_filters( 'bbp_new_topic_pre_insert', $topic_data );
     451
    446452            // Insert topic
    447453            $topic_id = wp_update_post( $topic_data );
Note: See TracChangeset for help on using the changeset viewer.