Skip to content
corsacca edited this page Apr 9, 2020 · 2 revisions

Filter dt_get_post_type_settings
Get the settings for a post type (contacts, groups, etc)

$post_settings = apply_filters( "dt_get_post_type_settings", [], $post_type );

Action dt_post_created
Fires after a post is created.
Parameters: (string) $post_type, (int) $post_id, (array) $initial_fields

Filter dt_post_create_fields
Filter to modify fields at the start of post create
Parameters: (array) $fields, (string) $post_type

Filter dt_post_update_fields
Filter to modify fields at the start of an update post request
Parameters (array) $fields, (string) $post_type, (int) $post_id

Filter dt_post_update_allow_fields
Filter to add allowed fields that aren't part of the post_type declared fields Parameters: (array) $fields, (string) $post_type

Action dt_post_updated
Hook to do actions after a post has been updated Parameters: (string) $post_type, (int) $post_id, (array) initial_fields, (array) $existing_post

Todo: dt_get_post_fields_filter dt_comment_created post_connection_removed post_connection_added dt_user_list_filters

Developer Documentation

Clone this wiki locally