Skip to content

Commit

Permalink
fix acf local json directory
Browse files Browse the repository at this point in the history
  • Loading branch information
crstauf committed Oct 3, 2023
1 parent e6647d4 commit 3f40764
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cssllc-acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public static function instance() {
protected function __construct() {
$this->directory = trailingslashit( __DIR__ ) . 'acf-json';

if ( defined( 'WPMU_PLUGIN_DIR' ) ) {
$this->directory = trailingslashit( constant( 'WPMU_PLUGIN_DIR' ) ) . 'acf-json';
}

$this->maybe_create_directory();

add_action( 'acf/input/admin_head', array( $this, 'action__acf_input_admin_head' ) );
Expand Down

0 comments on commit 3f40764

Please sign in to comment.