Support

Account

Home Forums Feature Requests Access to Store API

Unread

Access to Store API

  • Hi All,
    I’ve been using ACF for a while now and although it is awesome, it cannot cover all user cases.
    In project I’m developing I need custom SVG map that can be edited and it’s state saved on the server. I know I can use vanilla WP API or create ACF plugin with jQuery, but I don’t think it’s the optimal solution. ACF smooths out a lot of WP quirks for us, developers and I prefer to use it’s simple API for this kind of job.
    What would be ideal in my case ( and to other developers, too )
    Create custom WP page, there load our single page apps ( ex my SVG map ) and do CRUD operations with simple ACF API:

    const mapState = acf.getStore(‘svg-map’, ‘option’);
    // Load as JSON, display the map
    // User makes changes, clicks save

    acf.saveStore(‘svg-map’, {mapOptions}).then( message => toast(message) );

    What do you think of it?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.