public function onPostListBuilding(PostListBuildingEvent $event) { global $user; if ($user->can("bulk_edit_image_source") && !empty($event->search_terms)) { $event->add_control($this->theme->mss_html(implode(" ", $event->search_terms))); } }
public function onPostListBuilding(PostListBuildingEvent $event) { global $user; if ($user->can("manage_admintools") && !empty($event->search_terms)) { $event->add_control($this->theme->dbq_html(implode(" ", $event->search_terms))); } }