سؤال

I'm trying to add/ update additional values to an option created with the Settings API. I'm trying to do this with my validation callback function, but I'm not getting very far. Here is my code:

function tccl_settings_option_validate( $input ) {
    add_option( 'tccl_settings_option', $input );
}

This is causing a pretty big error. How should I be doing this?

What I would like to do is use the validation callback to add values to the option array without overwriting it.

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى wordpress.stackexchange
scroll top