To do something conditionally outside of the comment parameters, you’ll need to use the piklist_part_process filter. I just put together the doc for this: https://piklist.com/learn/doc/piklist_part_process/
Thanks @Jason!
Looks like exactly what I needed.
But I have a small question about $part parameter also.
What information this array contains?
Everything in comment section of a part or all information about fields too?
Can it be useful for example to dinamically update fields value(s) ?
Yup! There’s some internal properties (e.g. id, path to file, etc.) but one of the elements is $part['data'] which contains everything that was in the comment section (and everything that wasn’t). This hooks is the perfect place to change those dynamically.
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.