PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | src/API/Endpoints/Logs/GetLogs.php +4 -1 2.30.04.16.9 View file →
@@ -141,8 +141,10 @@
141 141 ];
142 142 }
143 143
144 144 /**
145 + * @since 3.12.1 Add 'givewp_log_source_view' filter
146 + *
145 147 * @param WP_REST_Request $request
146 148 *
147 149 * @return WP_REST_Response
148 150 */
@@ -156,9 +158,10 @@
156 158 $data[] = [
157 159 'id' => $log->getId(),
158 160 'log_type' => $log->getType(),
159 161 'category' => $log->getCategory(),
160 - 'source' => $log->getSource(),
162 + 'source' => apply_filters('givewp_log_source_view', $log->getSource(), $log->getContext(),
163 + $log->getId()),
161 164 'message' => $log->getMessage(),
162 165 'context' => $log->getContext(),
163 166 'date' => $log->getDate(),
164 167 ];