Skip to content

Commit 7a179a2

Browse files
docs: add PHPDoc to syslog_apply_selected_items_action for PHPStan
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
1 parent beadd36 commit 7a179a2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

functions.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ function syslog_sendemail($to, $from, $subject, $message, $smsmessage = '') {
126126
}
127127
}
128128

129+
/**
130+
* Dispatch a bulk action on selected items from a form submission.
131+
*
132+
* @param array|false $selected_items Unserialized selected item IDs, or false
133+
* @param int $drp_action The dropdown action identifier
134+
* @param array $action_map Map of action IDs to handler function names
135+
* @param string $export_action The action ID that triggers CSV export
136+
* @param string $export_items Comma-separated item IDs for export
137+
*
138+
* @return void
139+
*/
129140
function syslog_apply_selected_items_action($selected_items, $drp_action, $action_map, $export_action = '', $export_items = '') {
130141
if ($selected_items != false) {
131142
if (isset($action_map[$drp_action])) {

0 commit comments

Comments
 (0)