wpcorner / footnotes-made-easy

A WordPress plugin that allows post authors to easily add and manage footnotes in posts and pages.
https://wordpress.org/plugins/footnotes-made-easy/
GNU General Public License v2.0
0 stars 3 forks source link

Add filter to processed fields #1

Closed eSaner closed 1 week ago

eSaner commented 2 months ago

Thanks for taking over this plugin! Would love to see a filter added to line 161 of footnotes-made-easy.php that would allow the fields processed by the plugin to be modified (e.g. add acf_the_content).

manuell18 commented 3 weeks ago

Hi @eSaner I have added this code to the plugin, you should have changes reflected soon.

manuell18 commented 3 weeks ago

you will be able to modify which fields are processed by adding a filter in your theme's functions.php file or a custom plugin. Here's an example:

function modify_footnotes_made_easy_fields($fields) { $fields[ ] = 'acf_the_content'; // Adding an ACF field to be processed return $fields; } add_filter('footnotes_made_easy_fields', 'modify_footnotes_made_easy_fields');