ProcessWire control panel for running various admin actions
Repo adrianbj/ProcessAdminActions, read from GitHub 9 h ago. adrianbj has not joined Take My Repo.
adrianbj/ProcessAdminActions is a public repo on GitHub by adrianbj. ProcessWire control panel for running various admin actions. It declares the GPL-2.0 license on GitHub. It is written mainly in PHP, has 17 stars and last changed on 2026-11-14. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Processwire module for running various admin actions
https://processwire.com/talk/topic/14921-admin-actions/
Admin Actions lets you quickly create actions in the admin that you can use over and over and even make available to your site editors (permissions for each action are assigned to roles separately so you have full control over who has access to which actions).
It comes bundled with a several actions and I will be adding more over time (and hopefully I'll get some PRs from you guys too). You can browse and sort and filter based on the content of all columns.
Convert Fields to Multi-Language Converts fields to their matching multi-language fieldtype.
Copy Content To Other Field This action copies the content from one field to another field on all pages that use the selected template.
Copy Field Content To Other Page Copies the content from a field on one page to the same field on another page.
Copy Repeater Items To Other Page Add the items from a Repeater field on one page to the same field on another page.
Copy Table Field Rows To Other Page Add the rows from a Table field on one page to the same field on another page.
Create Users Batcher Allows you to batch create users. This module requires the Email New User module and it should be configured to generate a password automatically.
Delete Unused Fields Deletes fields that are not used by any templates.
Delete Unused Templates Deletes templates that are not used by any pages.
Email Batcher Lets you email multiple addresses at once.
Field Set Or Search And Replace Set field values, or search and replace text in field values from a filtered selection of pages and fields.
FTP Files to Page Add files/images from a folder to a selected page.
Page Active Languages Batcher Lets you enable or disable active status of multiple languages on multiple pages at once.
Page Manipulator Uses an InputfieldSelector to query pages and then allows batch actions on the matched pages.
Page Table To Repeater Matrix Fully converts an existing (and populated) PageTable field to either a Repeater or RepeaterMatrix field.
Template Fields Batcher Lets you add or remove multiple fields from multiple templates at once.
Template Roles Batcher Lets you add or remove access permissions, for multiple roles and multiple templates at once.
User Roles Permissions Batcher Lets you add or remove permissions for multiple roles, or roles for multiple users at once.
You can create new actions and place them in /site/templates/AdminActions/ so they don't get lost on module updates. These modules will appear under a new "Site" tab on the actions table.
If you create a new action that you think others would find useful, please create a new AdminActions module and submit to the ProcessWire modules directory.
Shared actions to be shared must include a PW module file. There are two requirements:
'requires' => 'ProcessAdminActions'This is the entire contents needed in a file named AdminActionsMySharedAction.module
Once this module is installed on a site, AdminActions will detect it and allow users to configure and use it like any other action.
<?php namespace ProcessWire;
class AdminActionsMySharedAction extends WireData implements Module {
public static function getModuleInfo() {
return array(
'title' => 'Admin Actions My Shared Action',
'summary' => 'My new action does really cool stuff',
'version' => '0.1.0',
'author' => 'John Doe',
'href' => 'https://github.com/JohnDoe/AdminActionsMySharedAction',
'requires' => 'ProcessAdminActions'
);
}
}
A good example of an installable action is @Toutouwai's Unordered List to Pages
A new action file can be as simple as this:
<?php namespace ProcessWire;
class UnpublishAboutPage extends ProcessAdminActions {
protected function executeAction() {
$p = $this->wire('pages')->get('/about/');
$p->addStatus(Page::statusUnpublished);
$p->save();
return true;
}
}
Each action:
As you can see there are only a few lines needed to wrap the actual API call, so it's really worth the small extra effort to make an action.
Obviously that example action is not very useful. Here is another more useful one that is included with the module. It includes $description, $notes, and $author variables which are used in the module table selector interface. It also makes use of the defineOptions() method which builds the input fields used to gather the required options before running the action.
<?php namespace ProcessWire;
class DeleteUnusedFields extends ProcessAdminActions {
protected $description = 'Deletes fields that are not used by any templates.';
protected $notes = 'Shows a list of unused fields with checkboxes to select those to delete.';
protected $author = 'Adrian Jones';
protected $authorLinks = array(
'pwforum' => '985-adrian',
'pwdirectory' => 'adrian-jones',
'github' => 'adrianbj',
);
protected function defineOptions() {
$fieldOptions = array();
foreach($this->wire('fields') as $field) {
if ($field->flags & Field::flagSystem || $field->flags & Field::flagPermanent) continue;
if(count($field->getFieldgroups()) === 0) $fieldOptions[$field->id] = $field->label ? $field->label . ' (' . $field->name . ')' : $field->name;
}
return array(
array(
'name' => 'fields',
'label' => 'Fields',
'description' => 'Select the fields you want to delete',
'notes' => 'Note that all fields listed are not used by any templates and should therefore be safe to delete',
'type' => 'checkboxes',
'options' => $fieldOptions,
'required' => true
)
);
}
protected function executeAction($options) {
$count = 0;
foreach($options['fields'] as $field) {
$f = $this->wire('fields')->get($field);
$this->wire('fields')->delete($f);
$count++;
}
$this->successMessage = $count . ' field' . _n('', 's', $count) . ' ' . _n('was', 'were', $count) . ' successfully deleted';
return true;
}
}
Finally we use $options array in the executeAction() method to get the values entered into those options fields to run the API script to remove the checked fields.
There is one additional method that I didn't outline called: checkRequirements() - you can see it in action in the PageTableToRepeaterMatrix action. You can use this to prevent the action from running if certain requirements are not met.
At the end of the executeAction() method you can populate $this->successMessage, or $this->failureMessage which will be returned after the action has finished.
Some hosts end any request that runs longer than a fixed time (eg. 120 seconds on many LiteSpeed servers), no matter what PHP's time limit is. If your action loops over a lot of items, it can split the work into batches. Each batch runs in its own request and the browser starts the next one automatically:
protected function executeAction($options) {
$pages = $this->wire()->pages->findIDs("template=product");
$i = $this->state ? $this->state['i'] : 0; // $this->state is null on the first batch
for(; $i < count($pages); $i++) {
if($this->timeUp()) return $this->continueWith(array('i' => $i), "Processed $i of " . count($pages));
// ... process $pages[$i] ...
}
return true;
}
$this->timeUp() returns true once the current batch has run for 90 seconds. Change the limit by adding protected $batchTimeLimit = 60; to your action.$this->continueWith($state, $progress) ends the batch. $state can be anything JSON-serializable and is passed back as $this->state in the next batch. The optional $progress text is shown in the status line while the action runs.$this->output is collected across batches. The database backup only runs before the first batch.timeUp() always returns false, and any continueWith() batches run one after another in the same request.If your host cuts off long requests and you'd rather not change your actions to use batches, set Execution mode to CLI in the module settings (or add protected $executionMode = 'cli'; to an action). When an action is run, the form is checked as usual, then the action is started in its own PHP CLI process, which no web request time limit applies to. The browser shows "Running in background…" and displays the result when it finishes.
proc_open() function and a Linux or macOS server. The PHP CLI binary is detected automatically. If that doesn't work, set PHP CLI path.bd() / bdb() is shown with the result instead of in the Tracy bar, and d() / db() output appears as usual. This needs TracyDebugger 5.1.9 or later.$session are not kept, because a CLI process has no browser session. File downloads sent with $files->send() work, but downloads sent by setting Content-Disposition headers yourself don't.You can also populate the option parameters via URL parameters. You should split multiple values with a "|" character.
You can either just pre-populate options:
http://mysite.dev/processwire/setup/admin-actions/options?action=TemplateFieldsBatcher&templates=29|56&fields=219&addOrRemove=add
A link can't run an action by itself: a run?... link opens the same pre-populated options form, and the action runs when you submit it. (Running straight from a link meant anyone who got a logged-in user to follow one could run an action with options of their choosing.)
You can call an action easily via the API. Here's an example of copying content of a field from one page to another.
Simply load the module, and call the action name as a method while passing the required options as an array:
$options = array(
'field' => 99,
'sourcePage' => 1131,
'destinationPage' => 1132
);
$modules->get("ProcessAdminActions")->CopyFieldContentToOtherPage($options);
Before any action is executed, a full database backup is automatically made. You have a few options to run a restore if needed:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(See included LICENSE file for full license text.)
adrianbj/ProcessAdminActions is a public repo on GitHub by adrianbj. ProcessWire control panel for running various admin actions.
It declares the GPL-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-14. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

The ultimate debugging and development tool for ProcessWire
ProcessWire module that facilitates automated migration and sharing of page trees along with their templates and fields.
Processwire field type for storing video files and automatically creating poster images
Processwire modules for quick batch creation, editing, sorting, and deletion of all children under a given page.
ProcessWire module to allow site editors to protect pages from guest access
ProcessWire module to automatically rename file (including image) uploads according to a configurable format
Take My Repo has not tested this on your machine. Requirements come from the project's own documentation.