sanitize_array($arrVal); $args = apply_filters( 'wppm_before_create_task_args', $args); $task_id = WPPM_Functions::create_task($args); do_action('wppm_after_task_created', $task_id);