ap_activity_deleted

Action Hook: Hook triggered right after an AnsPress activity is deleted from database.

Activity_Helper::delete()

Method: Delete single and multiple activity from database.

Activity_Helper::get_activity()

Method: Get activity by activity_id.

Activity_Helper::prepare_actions()

Method: Prepare all actions of activity. Numeric keys are used here so that we can save space while saving in database.

ap_activity_inserted

Action Hook: Hook called right after an activity get inserted to database.

Activity_Helper::insert()

Method: Insert activity data into the database. `$q_id` argument cannot be left blank as it is required.

Activity_Helper::action_exists()

Method: Check if activity action exists.

Activity_Helper::get_action()

Method: Return a single registered action of AnsPress.

Activity_Helper::get_actions()

Method: Return all registered actions of AnsPress.

ap_activity_actions

Filter Hook: Filter allows adding new activity actions. This hook is only called once while class initiate. Hence, later filters will not work. Also make sure to keep array key length less then 20 characters.