Bin e padrões para validação de cartão de crédito.
Bandeira | Começa com | Máximo de número | Máximo de número cvc |
---|---|---|---|
Visa | 4 | 13,16 | 3 |
Mastercard | 5 | 16 | 3 |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$the_query = new WP_Query( 'post_type=Na-midia&paged='.$paged.'&showposts=6&posts_per_page=6' ); | |
if ( $the_query->have_posts() ) : | |
while ( $the_query->have_posts() ) : $the_query->the_post(); | |
//AQUI O CONTEUDO | |
endwhile; |
<?php | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$the_query = new WP_Query( 'post_type=Na-midia&paged='.$paged.'&posts_per_page=6' ); | |
if ( $the_query->have_posts() ) : | |
while ( $the_query->have_posts() ) : $the_query->the_post(); | |
//AQUI O CONTEUDO | |
endwhile; |
'AAR – Aarhus, Denmark – Tirstrup', | |
'ABJ – Abidjan, Cote D`Ivoire – Port Bouet', | |
'ABQ – Albuquerque, NM, USA – Albuquerque Intl', | |
'ABR – Aberdeen, SD, USA – Aberdeen Regional Airport', | |
'ABS – Abu Simbel, Egypt – Abu Simbel', | |
'ABY – Albany, GA, USA – Dougherty County', | |
'ABZ – Aberdeen, Scotland, United Kingdom – Dyce', | |
'ACA – Acapulco, Guerrero, Mexico – Alvarez International', | |
'ACC – Accra, Ghana – Kotoka', | |
'ACE – Lanzarote, Canary Islands, Spain – Lanzarote', |
var states = ['AAR – Aarhus, Denmark – Tirstrup', 'ABJ – Abidjan, Cote D`Ivoire – Port Bouet', 'ABQ – Albuquerque, NM, USA – Albuquerque Intl','ABR – Aberdeen, SD, USA – Aberdeen Regional Airport','ABS – Abu Simbel, Egypt – Abu Simbel','ABY – Albany, GA, USA – Dougherty County','ABZ – Aberdeen, Scotland, United Kingdom – Dyce','ACA – Acapulco, Guerrero, Mexico – Alvarez International','ACC – Accra, Ghana – Kotoka','ACE – Lanzarote, Canary Islands, Spain – Lanzarote','ACY – Atlantic City /Atlantic Cty, NJ, USA – Atlantic City Intl','ADA – Adana, Turkey – Adana','ADB – Izmir, Turkey – Adnam Menderes','ADD – Addis Ababa, Ethiopia – Bole','ADJ – Amman, Jordan – Civil','ADL – Adelaide, South Australia, Australia – Adelaide','ADZ – San Andres Island, Colombia','AEP – Buenos Aires, Argentina – Jorge Newberry','AEY – Akureyri, Iceland – Akureyri','AGA – Agadir, Morocco – Inezgane','AGB – Augsburg, Germany – Muehlhausen','AGP – Malaga, Spain – Malaga','AGR – Agra, India – Kheria','AHO – Alghero, Sardenha, Itália','AJU |
<?php | |
$Nome = "Teste 100"; | |
$Cep = "06327290"; | |
$Cpf = "11111"; | |
$Email = "teste100@teste100.com.br"; | |
$Senha = "11111"; | |
$Estado = "São Paulo"; | |
$Cidade = "São Pauolo"; | |
$TelefoneFixo = "00000000"; |
function procCadastro(){ | |
var cadastroNome = $("cadastroNome").val(); | |
var cadastroEmail = $("cadastroEmail").val(); | |
var cadastroCpf = $("cadastroCpf").val(); | |
var cadastroCep = $("cadastroCep").val(); | |
var estado = $("estado").val(); | |
var cidade = $("cidade").val(); | |
var cadastroBairro = $("cadastroBairro").val(); | |
var cadastroSenha = $("cadastroSenha").val(); |
<?php | |
/** | |
* Add checkbox field to the checkout | |
**/ | |
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
function my_custom_checkout_field( $checkout ) { | |
echo '<div id="my-new-field"><h3>'.__('My Checkbox: ').'</h3>'; |
<?php | |
// [wp insert user « WordPress Codex](http://codex.wordpress.org/Function_Reference/wp_insert_user) | |
require_once "wordpress/wp-load.php"; | |
$user_info = array( | |
"user_pass" => "test123", | |
"user_login" => "username", | |
"user_nicename" => "username", | |
"user_email" => "email@example.com", |
LER APENAS UM | |
jQuery( function( $ ) { | |
$( '#get-another-quote-button' ).on( 'click', function ( e ) { | |
e.preventDefault(); | |
$.ajax( { | |
url: '/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1', | |
success: function ( data ) { | |
var post = data.shift(); // The data is an array of posts. Grab the first one. | |
$( '#quote-title' ).text( post.title ); |