A Custom Field Suite add-on plugin that adds an ability to support Network (Multisite environment).
- Just copy all files into
<ABSPATH>wp-content/plugins/cfs-network-support/
.
-
Just copy all files into
<ABSPATH>wp-content/mu-plugins/cfs-network-support/
. -
Move
cfs-network-support/loader/50-cfs-network-support-loader.php
into<ABSPATH>wp-content/mu-plugins/
.
-
Install via Composer.
composer require devaloka/cfs-network-support
-
Install via Composer.
composer require devaloka/cfs-network-support
-
Move
cfs-network-support
directory into<ABSPATH>wp-content/mu-plugins/
. -
Move
cfs-network-support/loader/50-cfs-network-support-loader.php
into<ABSPATH>wp-content/mu-plugins/
.
Just pass Site ID with site_id
key to CFS API options.
echo CFS()->get('first_name', false, ['site_id' => 1]);
See also get - Custom Field Suite.
$field_data = ['first_name' => 'Matt'];
$post_data = ['ID' => 678];
CFS()->save($field_data, $post_data, ['site_id' => 1]);
See also save - Custom Field Suite.
$related_ids = CFS()->get_reverse_related($post->ID, [
'field_name' => 'related_events',
'post_type' => 'news',
'site_id' => 1,
]);
See also get_reverse_related - Custom Field Suite.