• the add_options runs a get_option($name) before adding..

    if it is false it adds the option.. what if the value of the option is false?

Viewing 1 replies (of 1 total)
  • If I understand your question…

    The part of the code you refer to is:

    if ( false !== get_option($name) )
    return;

    add_option() runs get_option() at this point to see if a record with that name (actually, option_name) already exists in the options table. If it does, it just returns (breaks from the function). No reason for it to go any further if the option has already been added.

Viewing 1 replies (of 1 total)
  • The topic ‘add_option question..’ is closed to new replies.