You load files on init
, and your loaded file hooks something to init
. At the point the file loads init
has already happened, you’re adding the action too late. Just load the files outside of a function and make sure anything in those files are hooked to the proper action.