Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to add a new INPUT field to the blog creation form on Buddypress. Adding the front-end element is the easy part. I'm having some hard time trying to save it.

The variable is a string, and I've added wpmu_new_blog a function that adds the variable as an option (add_option('name','value');).

Despite the fact I've specified global $variable in the function, the variable won't pass.

Ideas? Thanks!

share|improve this question
    
I've problems to understand your question, can you add more information? –  hakre Feb 5 '11 at 17:27
add comment

1 Answer

The Wordpress Setting API should provide everything you need, it even automatically stores values IIRC. As buddypress is built on top of WordPress I assume this work for buddypress as well.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.