GithubHelp home page GithubHelp logo

ACF support about wp-typography HOT 5 CLOSED

mundschenk-at avatar mundschenk-at commented on June 16, 2024
ACF support

from wp-typography.

Comments (5)

sarukuku avatar sarukuku commented on June 16, 2024

+1

from wp-typography.

roopemerikukka avatar roopemerikukka commented on June 16, 2024

Hi,

I just noticed that you have used the acf/format_value_for_api filter which has been renamed to acf/format_value in v5.0.0 and later so the current solution only works with older ACF versions.

https://www.advancedcustomfields.com/resources/acfformat_value/

I have tested this by changing the name to the new one and got mine working after that.

from wp-typography.

mundschenk-at avatar mundschenk-at commented on June 16, 2024

That's because 4.4.8 is the latest free version of ACF.

from wp-typography.

roopemerikukka avatar roopemerikukka commented on June 16, 2024

A lot of people are using ACF Pro also. How about checking the ACF version and then choosing which hooks to use? You can get the acf major version (at least in 5) with intval( acf_get_setting('version') );.

And second thought about the hooks used. At least we use the text fields in various ways and also for data like keys and such that we wouldn't necessary want to get hyphenated. Could there be a checkboxes in options where you could select which field types to apply instead of just doing it automatically for all fields? I understand it with the wysiwyg field but the text and textarea fields might be used in ways where hyphenation isn't wanted.

from wp-typography.

mundschenk-at avatar mundschenk-at commented on June 16, 2024

I don't have access to ACF Pro, so I cannot test the code. (Philosophically, I'm not sure I want to support a premium plugin where the free version has not been updated to the next major release in such a long time.)

However, I suggest you create two separate enhancement requests and we'll continue the discussion there (it's easier to keep track of things if tickets cover a single issue).

from wp-typography.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.