• Knowledgebase
    • Knowledgebase
    • Snippets
    • Frequently asked questions
    • Roadmap
    • Facebook group
    • Customizations
  • Questions
    • Questions
    • My questions
  • Ask a question
  • Log In
  • Register
  • Notifications
  • Support us
Helpdesk
  • Knowledgebase
    • Knowledgebase
    • Snippets
    • Frequently asked questions
    • Roadmap
    • Facebook group
    • Customizations
  • Questions
    • Questions
    • My questions
  • Ask a question
  • Log In
  • Register
  • Notifications
  • Support us

Submit listing page – how to ?

Home/Submit listing page – how to ?/

Question stats

  • Active5 days ago
  • Views47 times
  • Answers2 answers
Solved47 views5 days agoBug report
0
JoachimThomsen58 Posted February 7, 2019

Hey there

On this domain: bsdk.dk i managed to re-direct the suder after sign-up to a page where they can add a listing if they haven’t got on already.

Used this code in functions.php (se bottom of the ticket)

I did the same on this site: revisorkort.dk, but it does not re-direct me. It is like my site does not know where the ‘submit listing’ page is … I don’t know how to fix this, and I don’t recall how I did it on bsdk.dk.

Any sugetions? 🙂

CODE:

// Redirect to add listing after registration

function woocommerce_registration_redirect( $url ) {

    $add_listing_page = c27()->get_setting( ‘general_add_listing_page’, ” );

    if ( ! empty( $add_listing_page ) ) {

        return esc_url( $add_listing_page );

    }

    return $url;

}

add_action(‘woocommerce_registration_redirect’, ‘woocommerce_registration_redirect’, 2 );

// redirect done

Pajtim Selected answer as best 5 days ago
Sorry, you do not have permission to read comments.

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
Register or Login
Question and answer is powered by AnsPress.io