• Resolved elrico13

    (@elrico13)


    Is it possible to change the URL used by the plugin?

    So that instead of everything being on /volunteer-opportunity it could be on /name-of-our-choice ?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jonathan Goldford

    (@jg-visual)

    This is definitely possible. We’ve added a hook into the plugin to make it happen. To adjust this you’ll want to add this code into the functions.php file of your active theme:

    
    function wi_change_volunteer_opp_url_slug( $slug ){
      return 'REPLACE-WITH-YOUR-URL-SLUG'; // Originally set to 'volunteer-opportunity'
    }
    add_filter( 'wivm_opp_rewrite', 'wi_change_volunteer_opp_url_slug' );
    

    After you add that code make sure you refresh your URLs by going to Settings >> Permalinks and clicking the blue “Save Changes” button (you don’t need to change anything) within the admin.

    Let us know how that goes for you and good luck.

    Thread Starter elrico13

    (@elrico13)

    Thanks Jonathan.

    I wanted to keep all changes in the child theme to allow the parent to update without impacting any of the customisations.

    I’ve created a functions.php file containing just the following and placed it in the child theme folder:

    <?php
    
    function wi_change_volunteer_opp_url_slug( $slug ){
      return 'assistance-programme'; // Originally set to 'volunteer-opportunity'
    }
    
    add_filter( 'wivm_opp_rewrite', 'wi_change_volunteer_opp_url_slug' );
    
    ?>

    It works a treat – thanks for your help!

    Plugin Author Jonathan Goldford

    (@jg-visual)

    That’s great to hear and thanks a ton for letting us know.

    If you have some extra time we’d love for you to leave an honest review at https://wordpress.org/support/plugin/wired-impact-volunteer-management/reviews/. Every review helps us get the word out about the plugin.

    Take care and as always, let us know if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change URL for plugin’ is closed to new replies.