Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40292, comment 8


Ignore:
Timestamp:
10/06/2023 01:27:34 PM (12 months ago)
Author:
bedas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40292, comment 8

    initial v1  
    33{{{#!php
    44<?php
     5require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
     6require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
    57$filesystem = new WP_Filesystem_Direct( true );
    6 
    7 // Now use it like this
     8$path = //define path to whatever file
    89
    910$filesystem->get_contents($path)