• Resolved jlcarbwood

    (@jlcarbwood)


    I was wondering how “gravityforms_local_json_save_path” hook. I’m trying to change the location where the JSON are saved. Any sample will appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author Corey Salzano

    (@salzano)

    Hi, thanks for trying my plugin. Here’s an example that changes the path to save .json files to one level above the directory containing WordPress.

    <?php
    add_filter( 'gravityforms_local_json_save_path', 'power_boost_change_json_path' );
    /**
     * Changes the path to save .json files to one level above the directory containing WordPress.
     *
     * @return string
     */
    function power_boost_change_json_path() {
    	return dirname( ABSPATH );
    }
    

Viewing 1 replies (of 1 total)
  • The topic ‘JSON Location Hook’ is closed to new replies.