forked from owlwatch/acf-multisite-options
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
60 lines (45 loc) · 1.7 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
=== Plugin Name ===
Contributors: fabrizim
Tags: advancedcustomfields, acf, multisite
Requires at least: 5.0.1
Tested up to: 5.7.9
Requires PHP: 5.6.0
Stable tag: 1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
This plugin adds the ability to add options pages in the network admin menu.
== Description ==
This plugin adds the ability to add options pages in the network admin menu.
== Installation ==
Install the plugin the normal way. Make sure that Advanced Custom Fields Pro
is "Network Activated". Also "Network Activate" this plugin.
When using the `acf_add_options_page` or `acf_add_options_sub_page` functions,
you can now use an optional `network` option to display the page on the Network
Admin pages.
Examples:
```
<?php
acf_add_options_page([
'network' => true,
'post_id' => 'acf_network_options',
'page_title' => 'Network Options',
'menu_title' => 'Network Options'
]);
acf_add_options_page([
'network' => true,
'post_id' => 'acf_network_options2',
'page_title' => 'Network Options 2',
'menu_title' => 'Network Options 2',
'parent_slug' => 'settings.php'
]);
```
== Frequently Asked Questions ==
= Where are the values stored? =
The values are stored in the `sitemeta` table, allowing for access
across all sites in the network.
== Notes ==
If this functionality was to be introduce into the ACF core, it would reduce a lot of
redundant code in this plugin, as it is necessary to re-implement several
of the functions surrounding getting and setting values.
Field groups for the multisite options pages should be saved and loaded
to a Network Activated plugin via [https://www.advancedcustomfields.com/resources/local-json/](ACF local JSON).