Questions tagged [validation]
The validation tag has no usage guidance.
243
questions
0
votes
0
answers
212
views
how to add security questions on wp-registration page and validate it
I wanted to validate security questions which show's on wp-login page validation is if answers are blank user cant login and if user register with 2 questions and admin change no. question show on ...
0
votes
0
answers
52
views
Data Validation & Sanitization for Big HTML Blocks
I'm developing a theme for Envato. Got Soft Reject because of issue typed in the question title. I created a 4 column widget area for my theme's footer. How can I sanitize the $output variable?
Thank ...
0
votes
1
answer
2k
views
Jquery Validation Engine with Conatct Form 7
I am using contact form 7 and it's working with basic validations. But i have to do some advanced validation.
So i have to use https://github.com/posabsolute/jQuery-Validation-Engine.
How can i use ...
0
votes
1
answer
2k
views
Add file upload with validation to custom form
I have a custom contact form page that I am trying to add an upload field that validates filesize and filetype. Before adding the validation everything worked.
<?php
/* Template ...
0
votes
1
answer
141
views
Passing form data on submit
In my sanitizing script, prior to using the POST Request method to submit this data, I have the following for my textarea input field named 'contact_msg':
if($_POST['contact_msg'] != ''){
$...
0
votes
0
answers
159
views
Form Sanitization and Validation
Already asked this on Code Review but no answer there so that's why i'm trying here.
I'm kinda new to form sanitization and validation. If someone could look at my code and tell me where i could do ...
0
votes
0
answers
53
views
Validating Error with submit button
I really need your help.. I am tryin like 3 days now to change the first pic and make it like the 3rd one. I did it but when Iremove depoarture day the enquire button doesnt work and dont get the form(...
0
votes
1
answer
543
views
Custom HTML form using PHP - help with ajax/username validation
I currently have a working registration form I created on my page. It's an HTML form and I coded PHP to have it create the user in our WP_user table and email us with info from the form. The PHP is in ...
0
votes
1
answer
1k
views
Allow users to register on multisite through WooCommerce using the same email address
I'm working on setting up a multisite environment, and have run into the possibility of a user trying to register on the sub-site with the same email address they've used on the main site. I've found ...
0
votes
1
answer
235
views
Restrict certain roles registrations by domain
I'm really stumped on this one. I have figured out how allow registration from certain email domains. However, I only want to restrict one user type. For example 'ROLE1' can register with any email ...
0
votes
1
answer
317
views
media_handle_upload on mix form fields (not required file input)
I collaborate with the development of the theme Odin Framework, which has several classes that leverage the launch of a site from scratch.
Among them, we have the abstract-front-end-form.php (link to ...
0
votes
1
answer
278
views
WordPress login form with fancybox
I'm using fancybox to show WordPress login form. It works perfectly. However, if the user enters incorrect user name or password, he is redirected to wp-login.php, but I want the validation will take ...
0
votes
1
answer
32
views
Help with Wordpress RSS Validation Error
I was trying to link my site (http://neontoday.com) to Bloglovin. However it wasn't showing my post, so I emailed support and I was told there was an issue with RSS validation for my site.
I have ...
0
votes
2
answers
947
views
Filter and validate user role in registration
I want to show a select box for user roles in the registration form. I am using this model:
/* ROLES IN LIST REGISTRATION */
// 1. Add a new form element...
add_action( 'register_form', '...
0
votes
1
answer
561
views
Gravity Forms validate arrival and departure
I am working recently with GF and encounter the first problem: I have two datepicker; one is "arrival" and one is "departure".
Now - of course - the "departure" can't be before "arrival". I've found ...
0
votes
1
answer
190
views
Plugin option for input box validation
I'm crating a plugin option page from the code below. However, it does not explain how to get validation on the input fields.
How do I get validation on id_number for NUMBER ONLY?
https://codex....
0
votes
0
answers
22
views
How to format the various types of custom fields?
So i am ready to throw in my custom post type a bunch of custom fields.
All these fields need specific handling for their input and validation.
Exmaples:
Numeric fields
E-mails
WYSIWYG editor
...
0
votes
1
answer
4k
views
How to bypass Woocommerce checkout validation from the plugin? [closed]
I need to bypass any validation process in Woocommerce checkout page when Process Order button clicked. What filter or action hooks should I use?
0
votes
0
answers
214
views
Why is my script's regex having its backslash removed?
One of my company's child themes requires customization. I am customizing using jQuery and have noticed in my function's regex (function lives in the "scripts" section of "Pages"--->My Page)
that ...
0
votes
0
answers
1k
views
Displaying errors on the front end from my plugin
I am creating a plugin that has a frontend form, which in turn has some validation.. Errors if validation fails and success if it passes. I have tried everything and can't get messages to appear on ...
0
votes
3
answers
21k
views
Conditional required fields for Wordpress Contact Form 7
I know this might be considered off topic but I am not sure where else to post this as it also pertains to WordPress as well as the plugin Contact Form 7. If you know where I should post this other ...
0
votes
1
answer
695
views
Proper Way to Sanitize Meta Input
I have a meta field which gets displaed in the admin panel look like:
$field = get_post_meta($postid, 'field_name', true); ?>
<input type="text" name="field_name" value="<?php echo (!empty($...
0
votes
0
answers
35
views
Validation Always Tells There Is an Open DIV
The Validator will just not accept my website and is always telling me, there are two errors:
1. an open DIV ("inhalt")
2. an article left
... and I just can not find the errors in the index.php.
...
0
votes
1
answer
389
views
Can we validate user email changes?
I am having difficulty understanding why user security and validation is so vague in WP (4.0).. Surely email verification should come as default?
Anyway I have been trying to find a solution to user ...
0
votes
1
answer
456
views
Meta title W3C Validation Error with
On the single post, the WordPress generates the meta title automatically but it gives validation error.
This is what WordPress generates:
<meta name="title" content="The post title goes here" /&...
0
votes
0
answers
465
views
Remove WordPress default registration client side validation?
Is there a way to remove/disable WordPress default registration client side validation? I dislike the pop alert and would like to add my own client side validation visual to users.
Please assist me ...
0
votes
1
answer
167
views
Which hook should I use for this scenario regarding the registration process and account/profile update?
I would like to run a PHP script "ONLY" when a user successfully fills out the WordPress Registration form and submits it as well as when a user updates their profile.
Here's what I have so far,
...
0
votes
1
answer
9k
views
Contact Form 7: custom validation [closed]
I'm currently using the Contact Form 7 plugin, which is great and works perfectly, but what I'm now trying to achieve with it is some custom validation rules.
I found this extension: http://code-...
0
votes
1
answer
2k
views
Reordering fields in registration form via custom plugin
I'd like to reorder the fields in the default WP registration form. I'm adding additional fields with my plugin but they are appearing below the username and email fields. My code is below (it's ...
0
votes
2
answers
735
views
Validating custom meta boxes with jQuery results in posts being saved as draft instead of published post
I have a custom post type with a bunch of custom fields. I want to validate the meta box input with jQuery as soon as you press the Publish button. Here's what I have (I left out all my validation ...
0
votes
1
answer
898
views
Validate user meta and redirect
I wanted to add some extra fields to obtain extra user info which I have added easily that looks like.
The example code for a single form field, I added:
add_action( 'show_user_profile', '...
0
votes
1
answer
352
views
Settings api sanatize callback not being triggered
I'm creating a custom settings page for a custom theme however the callbacks for sanatizing the data in the fields are not being called (I put in xdebug breakpoints in them to check).
/**
*-----------...
0
votes
1
answer
3k
views
Comment form vaildation
I've build a custom comments form which hooks onto the default comment_form() in twenty twelve child theme. Here is my code functions.php
function pietergoosen_custom_comment_fields($fields) {
...
0
votes
0
answers
2k
views
register_setting - validation callback weirdness
I'm working on a plugin and having some issues validating input on its settings page. I'll try to explain as briefly as possible what I'm doing in the plugin file:
if (is_admin()) {
add_action('...
0
votes
1
answer
100
views
How long does plugin review usually take?
WordPress says that plugins are manually reviewed within a "vaguely defined amount of time". What's the experience? How long does this take, on average?
0
votes
1
answer
1k
views
Form validation on user profile edit
I have added a custom field to user profiles in bbPress however I am unsure how to do form validation other than javascript. I would like to do some PHP validation however the few things I have tried ...
0
votes
1
answer
315
views
WP calendar summary attribute validation error
When the calendar widget is activated in the sidebar, it generates the following validation error (W3C markup validation):
The summary attribute is obsolete. Consider describing the structure
of ...
0
votes
1
answer
43
views
Block pattern conflict with custom block
I have created a custom block named testimonials and saved it as a pattern. The problem is when I make some modifications to the block save function it doesn't match with the pattern anymore and I get ...
0
votes
1
answer
2k
views
jQuery Live Form Validation in Wordpress
I'm trying to implement the form validation that can be found at: http://www.geektantra.com/2009/09/jquery-live-form-validation/
I can get the demo above working, but when I implement it on my ...
-1
votes
1
answer
2k
views
How to use esc_attr__() function properly to translate a variable that contains string?
I am trying to develop a theme and trying to escape a string using esc_attr__() fuction. Here is how I implemented it.
$title = stoic_get_the_site_title();
echo esc_attr__($title, 'stoic');
But ...
-1
votes
1
answer
906
views
WP Debug enabled Undefined index error in a widget
I have set WP debug to true, and I am getting error message →
Notice: Undefined index: tick_the_snippet_type
<p>
<input
type="radio"
<?php checked( $instance[ '...
-1
votes
1
answer
17k
views
How to do Conact form 7 name field validation? [closed]
I am using contact-form-7 plugin, where i have created name field as Name.
The name field is accepting text and number too. But my requirement is that name field should not start from number so how i ...
-1
votes
1
answer
3k
views
Custom Registration and Login Forms with reCaptcha 2 Validation
I've read all the posts at stackoverflow and wordpress stackexchange, and none of the topics on using Google reCaptcha 2 have given me information on how to validate reCaptcha on both custom wordpress ...