HDQ_MAX_ANSWERS Hook Not adding Answers
-
Howdy, I decided to try out allowing more answers but am stuck. When adding HDQ_MAX_ANSWERS to my themes functions.php via the following code
define(‘HDQ_MAX_ANSWERS’, 10);This produces the following error:
Warning: Constant HDQ_MAX_ANSWERS already defined in /home/site/wp-content/themes/twentytwentyfour/functions.php on line 49Of course I make sure the code is not within any blocks and has a line break above and below. I’ve added filters for various plugins with great success. Looking into this further I decided to try:
if (!defined(‘HDQ_MAX_ANSWERS’)) define(‘HDQ_MAX_ANSWERS’, 44);
But this literally does nothing (answers remain to show the default 10). Meaning it would seem HDQ_MAX_ANSWERS is defined before loading functions.php? Does this happen on your end? Is more code needed to clear the original?Warm regards,
Josh
- You must be logged in to reply to this topic.