[Appointments+] functions.php

how to edit it?

  • Neil
    • WPMU DEV Initiate

    Am trying to insert the above code to my functions.php file, where the service id for my service is 3.

    function increase_capacity( $capacity, $service_id, $worker_id ) {

    if ($service_id == 3) {

    return 10;


    else {

    return $capacity;



    add_filter( ‘app_get_capacity’, ‘increase_capacity’, 10, 3 );

    However, am not able to save the php file. It returns an error saying server didn’t respond. Am entering this at the very bottom of the functions.php file.

    Am I doing this wrong?

    PS – Am on a DIVI multisite

  • Ash
    • WordPress Hacker

    Hello Neil

    I don’t see any error in the above code. When you see the error, would you please enable debug mode and check if there is any error? To enable debug mode please go to wp-config.php and change

    define( 'WP_DEBUG', false );


    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );

    Now refresh the page keeping the code in there. That will create a file called debug.log inside wp-content folder. Open that file, check the very bottom and you will see the latest errors. Please send me those.

    Have a nice day!



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.