How To Modify Signup Form Via ClipBucket Plugin

19 views October 18, 2016 October 18, 2016 Saqib Razzaq 0

Its simple & easy to modify input data when it is submitted before sending it to database. Let’s say a user enters all his fields but you want to attach additional fields that user shouldn’t be seeing, you insert new fields via plugin.

Place below code in main file of your plugin to call it from main file


if (isset($_POST['signup'])) {
$fields = $_POST;
$newField = 'name of your field';
$newFieldVal = 'value of your field';
$fields[$newField] = $newFieldVal;
}

That’s pretty much it. Once done, you won’t have to go to database manually to enter fields.

Was this helpful?