You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Being able to have visibility about the number of occurences of each layout on a website
Describe the solution you'd like
An idea would to be to use these filters on the different flexibles : acf/update_value/name=pip_flexible_header acf/update_value/name=pip_flexible_footer acf/update_value/name=pip_flexible
With these filters, counting the numbers of layouts per page and updating an option with an array of the following structure
On delete_post removing the index of the post ID in the option.
Then maybe having another option that stocks the results of the number of layouts all across the site (using a foreach and doing the sum of all the same indexes), so we don't calculate everything on the layouts listings (edit.php?post_type=acf-field-group&layouts=1) - idk what's better performance wise for this.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Being able to have visibility about the number of occurences of each layout on a website
Describe the solution you'd like
An idea would to be to use these filters on the different flexibles :
acf/update_value/name=pip_flexible_header
acf/update_value/name=pip_flexible_footer
acf/update_value/name=pip_flexible
With these filters, counting the numbers of layouts per page and updating an option with an array of the following structure
On
delete_post
removing the index of the post ID in the option.Then maybe having another option that stocks the results of the number of layouts all across the site (using a
foreach
and doing the sum of all the same indexes), so we don't calculate everything on the layouts listings (edit.php?post_type=acf-field-group&layouts=1
) - idk what's better performance wise for this.The text was updated successfully, but these errors were encountered: