php - Check if one ACF Field in Options page has changed on Save -
i working on site , within admin have acf built options page. need on page load, check value of 1 specific field, , store value reference. when user clicks "update," need site check initial loaded value , see if value has changed. if changed, execute clear cache function calling.
the issue i'm running it's acf, options page doesn't have id, , believe front end execution methods only. don't believe can add wp custom metafield in options page, since again, page doesn't have id write metadata to. wrong.
so since can't find it's id, can't think of way check field value in php, i'm not sure or route take.
can direct me? don't have code share haven't written yet. merely thought.
Comments
Post a Comment