How redirect from one page to other

Hi Team, i have created my own page with entry packages. How can I redirect https://mysite.de/submit-listing/package/ to it? A hivepress template would also be a solution. I’m happy to hear from you!

Hi,

You can use this PHP snippet Redirect the user login form to a custom URL (note that this breaks some user flows) #hivepress #users · GitHub as an example, but you will most likely need to change the hook (because you did not specify where you want to redirect from).

Thank for your answer. Unfortunately it doesn’t work.

add_filter(
	'hivepress/submit-listing/package',
	function( $form ) {
		if ( ! isset( $form['redirect'] ) ) {
			$form['redirect'] = '/eintragungspakete';
		}

		return $form;
	},
	1000
);

Because this isn’t a form, the code probably needs to look very different. Have you a idea?

Hi,

Sorry for the inconvenience, but customization is beyond our support scope - it includes fixing bugs and guidance about the available features Support Policy | HivePress

If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY

I find no hook that works. So i have a solution: Redirection Plugin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.