PHP code example of kaiseki / wp-plugin-ninja-forms-user-management
1. Go to this page and download the library: Download kaiseki/wp-plugin-ninja-forms-user-management library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kaiseki / wp-plugin-ninja-forms-user-management example snippets
use Kaiseki\WordPress\NinjaFormsUserManagement\FilterUserSettings;
return [
'ninja_forms_user_management' => [
// Merged into the settings registered on `ninja_forms_register_user_settings`.
// Keyed by setting name; entries whose key is absent in the incoming
// settings are skipped.
'user_settings' => [
'user_role' => [
'name' => 'user_role',
'type' => 'select',
'label' => __('User Role', 'my-textdomain'),
],
],
],
'hook' => [
'provider' => [
FilterUserSettings::class,
],
],
];