Redirect a function call via functions.php?
I need to make an edit in a WP core function. The function is part of a whole cluster of other functions; a needs b needs c need d etc. Turning the entire cluster into a custom version in functions.php is the only way I know to bring it into the theme.
Is it possible to put something in functions.php that “catches” any calls to only that particular function, redirect them to a custom function in functions.php and then send the returned data back to the regular WP process?
I need it for this case, but I often run into this problem.
- The topic ‘Redirect a function call via functions.php?’ is closed to new replies.