• Resolved Machine IT Services

    (@machineitsvcs)


    I seem to be having trouble setting up a custom endpoint in My Account on one of my WordPress Multisite installations. I even copied existing code I’ve been using for over a year on another standard WordPress site, and the issue persists, so I don’t believe it to be a coding error. I can add the additional menu item without issue on the My Account page, but I cannot confirm whether it is the add_rewrite_endpoint or the endpoint content that isn’t working. I’m betting on the former. Can someone look into this? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    > I can add the additional menu item without issue on the My Account page, but I cannot confirm whether it is the add_rewrite_endpoint or the endpoint content that isn’t working.

    The multisite structure should have no effect on any hooks. How about dumping a simple output via both endpoints to check which one does nothing. Since you have control over both you could also selectively unhook them.

    Kind regards,

    Thread Starter Machine IT Services

    (@machineitsvcs)

    I tried using error_log to monitor each hook. However, since/if the add_rewrite_endpoint command isn’t working, the woocommerce_account…endpoint hook isn’t executing and I receive no error_log output.

    Thread Starter Machine IT Services

    (@machineitsvcs)

    When trying to visit the endpoint in question, I receive a page not found error, which is why I was leaning toward the add_rewrite_endpoint being the issue.

    Thread Starter Machine IT Services

    (@machineitsvcs)

    Apologies. Upon further investigation I found flushing the rewrite rules to be the solution. Thank you. I will go ahead and mark this as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot Create Custom Account Endpoints on Multisite Installation’ is closed to new replies.