wordpress

__i__ id in new sidebar register

I am trying to register a sidebar in my class. $this->number is use to generate a unique id for each sidebar. Here is my code register_sidebar( array( ‘id’ => ‘col’.$this->number, ‘name’ => __( ‘Column ‘. $this->number, ” ), ‘before_widget’ => ‘<section id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</section>’, ‘before_title’ => ‘<h5 class=”section-nav-title”>’, ‘after_title’ => ‘</h5>’,) ); If I check using firebug…
Read more

Validate extra fields to register form woocommerce

All my excuses in advance for my English. I’m trying to add two extra fiels: billing_firstname and billing_lastname fiels to woocommerce registration form. I manage show fields with no problem at all. But i have this error in validation function: Fatal error: “Call to a member function add() on a non-object…” in the line that i have $validation_errors->add… Here is…
Read more