WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

how to preserver old option while posting to options.php (1 post)

  1. Nerigal
    Member
    Posted 4 years ago #

    Hi,

    im new to this and i got a problem with an plugin admin option page post
    to options.php to save new settings to database

    the problem is that options.php overwrite all the content of the db label

    so i instead i post to a custom php file to get old option compare to new one's and make new $_POST array with everything have to be in the post it back to options.php

    but my prob is when i post to my new custom file... i can't use any of wordpress object methods such as get_option() so what im doing wrong or there is probably an other way of doing this

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic