Not knowing how plugins work, does your response imply that new plugin data goes on the functions.php file for a child theme?
And if so, what happens when the theme gets an update?
It’s not recommended to add functions to this file, as it will be lost if you ever update this child theme.
Instead, consider adding your function into a plugin using Pluginception: https://wordpress.org/plugins/pluginception/