wpsc_enable_wp_config_edit

wpsc_enable_wp_config_edit

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-super-cache.2.0.0

apply_filters('wpsc_enable_wp_config_edit') is found 2 times:

  • /wp-cache.php line 2252
    2248
    2249
    2250
    2251
    2252
    2253
    2254
    2255
    2256
    2257
    2258
    }
     
    $line = 'define( \'WPCACHEHOME\', \'' . __DIR__ . '/\' );';
     
    if ( ! apply_filters( 'wpsc_enable_wp_config_edit', true ) ) {
        echo '<div class="notice notice-error"><h4>' . __( 'Warning', 'wp-super-cache' ) . "! " . sprintf( __( 'Not allowed to edit %s per configuration.', 'wp-super-cache' ), $global_config_file ) . "</h4></div>";
        return false;
    }
     
    if (
        ! strpos( file_get_contents( $global_config_file ), "WPCACHEHOME" ) ||
  • /wp-cache.php line 3740
    3736
    3737
    3738
    3739
    3740
    3741
    3742
    3743
    3744
    3745
    3746
    } else {
        $global_config_file = dirname(ABSPATH) . '/wp-config.php';
    }
     
    if ( apply_filters( 'wpsc_enable_wp_config_edit', true ) ) {
        $line = 'define(\'WP_CACHE\', true);';
        if (
            strpos( file_get_contents( $global_config_file ), $line ) &&
            (
                ! is_writeable_ACLSafe( $global_config_file ) ||
                ! wp_cache_replace_line( 'define*\(*\'WP_CACHE\'', '', $global_config_file )