Skip to content

Commit

Permalink
chore: Disable changing backend URL to frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Souptik Datta <souptikdatta2001@gmail.com>
  • Loading branch information
Souptik2001 committed Nov 30, 2024
1 parent 7235a1a commit cc0b4e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/plugins/souptik2001/inc/classes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ public function hooks() {

add_action( 'profile_update', [ $this, 'trigger_build_hook_for_user' ], 10, 3 );

add_filter( 'post_link', [ $this, 'change_permalinks' ], 10, 3 );
// Need to only change the permalink in mailpoet, not everywhere.
// add_filter( 'post_link', [ $this, 'change_permalinks' ], 10, 3 );

// Bad code -- Need to improve, then only enable.
// Will no longer be needed if we also expose the backend site -- need to decide.
// add_filter( 'template_redirect', [ $this, 'redirect_if_non_logged_in' ] );

add_filter( 'allowed_redirect_hosts', [ $this, 'allowed_redirect_hosts' ] );
Expand Down

0 comments on commit cc0b4e0

Please sign in to comment.