• I have an option that is an array. Is there any restriction for using the update_option in a run once snippet?
    Is there any concern in adding an element to the array before running the snippet?
    Is there any concern in removing an element (or renaming it) before running the snippet with the update_option(array) statment?
    Is there any concern if the option (array) that is being updated is loaded when WP starts up?
    Thanks in advance for sharing your knowledge and experience.

    bob

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    There shouldn’t be any issue with these, except to say that I would recommend only including these statements in some sort of action hook such as wp_loaded or init instead of just running them directly in the snippet.

Viewing 1 replies (of 1 total)
  • The topic ‘code snippet to update_options with array’ is closed to new replies.