Comments (5)
+1
from wp-typography.
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.
That's because 4.4.8 is the latest free version of ACF.
from wp-typography.
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.
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)
- CSS cleaning regular expression fails to compile on PHP 7.3/PCRE2
- PHP Warning: preg_replace Compilation failed HOT 1
- Add requirements check for DOM extension
- JS assets return 404 when installed as mu-plugin HOT 2
- Gutenberg support HOT 2
- Add block that applies wp-Typography
- Problem with copying read-only form elements
- Breaks Gutenberg gallery item markup (with linked caption) HOT 11
- Content filters cannot be removed via the API HOT 1
- JavaScript error when editing Custom Post Type HOT 1
- link_name filter should not have HTML added
- Dewidow not working
- Add settings export and import
- [Feature] Prevent break between bracket and space / space and bracket HOT 1
- [PHP8.0] Plugin uses deprecated function in library HOT 3
- Site crash after update to release `v5.8.0` HOT 1
- Fatal error `internationalNoHairSpaces` HOT 1
- Fatal error - "call to undefined function", WP 5.8.3 with plugin 5.8.0 (5.8.1 fixes?) HOT 2
- ACF 6 compatibility
- Default styles HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-typography.