Home>
WordPress member site plug-in "WP-Members" registration form
I want to display a placeholder "alphanumeric characters" in place of "user name".
Warning: Use of undefined constant field-assumed 'field' (this will throw an Error in a future version of PHP) in/site URL/functions.php on line 583
Applicable source code
add_filter ('wpmem_register_form_rows', 'my_register_form_rows_filter', 10, 2);
function my_register_form_rows_filter ($rows, $toggle) {
$rows ['username'] [field] = '<input name = "log" type = "text" value = "" placeholder = "alphanumeric characters">';
return $rows;
}
Sites you ’ve tried/referenced
I wrote the above code at the bottom of functions.php.
This site is helpful
https://moca-d.com/1177.html
Is it wrong to write functions.php?
Is there an error in the explanation of the above site?
I am in trouble because I cannot make my own judgment.
※ By the way, the 583rd line which is a problem is
$rows ['username'] [field] = '';
Theme used: lightning pro
-
Answer # 1
Related articles
- php - address to brackets "an error occurred while loading preferences"
- php - please tell me how to resolve the error that occurred while editing the wordpress theme
- php: there is an error in the insert into line and it cannot be resolved
- php fatal error "cannot redeclare" error statement
- php - i want to identify and correct the cause of the page feed error that occurs in wordpress
- php - i get an error when submitting a laravel 5550 form
- php - i get an error in vuejs when trying to deploy to production (laravel)
- cakephp 4: i get an error when uploading a file without input
- php - sqlstate [hy000]: general error: 1364 user registration is not possible due to an error
- i want to solve the ssl error "dh key too small in" that appears when using the national diet library api with php
- i don't know how to resolve the php syntax error required to log in
- laravel php artisan config: 500 error when caching
- [php/mysql] sql syntax error of sqlstate [42000] occurs
- [php/xampp] an error occurs when setting the include path
- php move_uploaded_file error
- php - ec-cube 405 error in self-made command (cron) in prod environment
- when i upgraded the php spreadsheet, i got an error
- ruby - http error 500 error occurred in aws deployment, but the cause cannot be determined
- php - 404 not found nginx/1135 error resolution
- php - vlaravel form request does not show error statement
Related questions
- php : Disable user role assignment on URL navigation
- the cause is the php setting, but i just can't figure it out
- php - [number of articles in term] if the number of articles is "0", you want to hide the number
- php - only the search result page is not displayed in alphabetical order
- i want to write php that displays only 3 articles
- php - i want to display an eye-catching image in wordpress
- php - i want to loop the posted articles using swiper
- php - when using ajax with wordpress, the post title and the featured image become "null"
- php - buddypress activity posting time is off between new posts and thread replies
- php - importing images with wordpress (using acf)
Is it just right to fix the error?
$rows ['username'] [field]
↓
$rows ['username'] ['field']
Please be aware that it is different whether the expected operation can be achieved.