In functions.php for a theme I include a file that adds functionality to allow the easy duplication of posts - the include file contains the code from this (very useful) webpage. I include it like this:
include "inc/duplicate-posts.php";
The include contains all the functions from that page, plus the add_filter line that hooks it all up, and it works fine in that theme.
However, I also use this theme in another site as the parent to a child theme. It doesn't add the post duplication functionality here, and I can't see why.
The file is still being included (from the parent theme, via its functions.php), if I add an echo 'lkaslasjd';
line that outputs ok. But the function that's supposed to be connected via post_row_actions doesn't seem to execute, and the extra functionality isn't added.
This is probably a simple misunderstanding on my part, but can anyone help me understand what I need to do to get this to work?
Update: Code works fine, error was all mine