That was some quick checking! Yeah that was my first approach, unfortunately they said it was not possible in an easy way (i.e in the admin panel for clients) and they might put it in an update in the future.
However, I’ll search for where the field gets created tomorrow and then see what’s possible. Don’t know how much of the code I’m allowed to share though.
I don’t know if ACF was even used for making these, currently I just installed the latest version.
I have no idea where they are created, so I’ll just run a mass search in all files for the word free_tab.
That will have to happen tomorrow though, can’t reach the files right now.
When I do find where the fields are created, how exactly would I extract the field key and use it for making a filter?
Thanks again!
How would I go on about adding a filter in the functions file?
(also, I got your message through mail but I can’t seem to see your reply here in the forum)
Hi,
I’m pretty sure the field is created in the theme. ACF doesn’t see any fields. So my understanding is that it’s in the PHP.
I can see in a php file how it gets displayed:
`for($i=0; $i<$tab_count+1; $i++){
$tab_icon = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.’free_tab_’.$i.’_icon’, true);
$tab_name = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.’free_tab_’.$i.’_title’, true);
$tab_content = get_post_meta( $post->ID, RT_COMMON_THEMESLUG.’free_tab_’.$i.’_content’, true);
`
But where would I find exactly where these custom fields get declared in the first place? (since there is where I would set the default value, right?)
Thanks for the help 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.