Home Forums Feature Requests Anyway to store the JSON from PHP Reply To: Anyway to store the JSON from PHP

  • Thanks,

    I am playing with ACF5 right now.
    Looking at the JSON it looks almost identical to the PHP files.

    So Here is the Big Question:
    ** Can’t you just load the fields with the PHP data instead of JSON ***

    All that would be needed for us would be to specify a load type:
    define(‘ACF_LOAD_TYPE’, ‘php’);

    Default would be:
    define(‘ACF_LOAD_TYPE’, ‘json’);

    By setting it to ‘php’ we agree that ACF will not look at the database and instead only use what we have defined with php.