only use custom pdf defines if in wordpress