Where to place a custom hook for a singular template filter?

[ad_1]

Have you tried the_content?
If that’s not a fit — can you explain what you’re trying to do?

Hi @pdclark
In fact, what I’m trying to achieve is to extend and change the pod behaviour, for instance, a function that checks if a number given to an item already exists, some validations but not only.
Thanks

Hi @raulmagdalena

See and

The first can be used to check the value of a meta field, such as a number, and the second can be used to change display of the post content on a singular template.

Thanks @pdclark

Where to set the code? it is a good approach create my own plugin to extend my pods behaviour?, i mean, as far as i know it is not good idea to add any file to the pods pluigin, as it will be deleted/changed on any pods plugin update

thanks again

Your own plugin outside the Pods plugin is fine.
Just add a plugin header:

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer