# קוד מותאם אישית אחר בהתקנת WP מונע מ-WP Discourse לבצע הפניה חזרה לפורום

**URL:** <https://meta.discourse.org/t/other-custom-code-on-wp-installation-is-preventing-wp-discourse-from-redirecting-back-to-forum/237523>\
**Category:** WordPress\
**Created:** [29 באוגוסט,‏ 2022,‏ 9:36pm UTC](https://meta.discourse.org/t/other-custom-code-on-wp-installation-is-preventing-wp-discourse-from-redirecting-back-to-forum/237523 "2022-08-29T21:36:09Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)\
**Post date:** [14 בספטמבר,‏ 2022,‏ 1:11pm UTC](https://meta.discourse.org/t/other-custom-code-on-wp-installation-is-preventing-wp-discourse-from-redirecting-back-to-forum/237523/7 "2022-09-14T13:11:23Z")

</div>

The member management company was able to assist with the following changes which resolved the problem:

> I added the following code to your current theme’s functions.php file:

```plaintext
function example_allow_extra_redirect( $hosts ) {
$hosts = '[forum.example.org](http://forum.example.org/)';
return $hosts;
}
add_filter( 'allowed_redirect_hosts', 'example_allow_extra_redirect' );

```

---

_[View the full topic](https://meta.discourse.org/t/other-custom-code-on-wp-installation-is-preventing-wp-discourse-from-redirecting-back-to-forum/237523)._
