Appointments+ query - auto choose provider

I do not want that as service provided "no preference" is auto selected. Instead i would like to force a particular service provider to be default selection always. Is there is a way, since i could not find one. thanks

  • Rupok

    Hi Akshat Mehrotra, hope you had a wonderful day.

    I'm afraid, there is no native way by which you can pre-select any Service Provider. But it's possible with custom coding and you will need to create a MU Plugin for that. For creating a mu plugin, create a folder named "mu-plugins" inside your "wp-content" folder. Then inside that "mu-plugins" folder, create a file with any name and with a .php extension. Now paste the code inside that file and save.

    add_action( 'wp_footer', 'pre_selected_service_provider' );
    function pre_selected_service_provider() {
        <script type=&quot;text/javascript&quot;>
          jQuery(document).ready(function() {

    Here, Option Value "3" represents "Emily Neumann". You can change the value to "2" for "Rahul Reddy" or "4" for "Sophia Asare". Please check the attached screenshot for reference.

    For getting more idea on mu plugins, you can go through this article:

    Please let us know if you have any confusion. We will be glad to help.

    Have a nice day. Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.