forked from sky1tech/acf-relationship-multisite
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathacf-relationship-multisite.php
More file actions
executable file
·32 lines (21 loc) · 1011 Bytes
/
acf-relationship-multisite.php
File metadata and controls
executable file
·32 lines (21 loc) · 1011 Bytes
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
<?php
/*
Plugin Name: Advanced Custom Fields: Relationship Multisite
Plugin URI: https://github.com/tmconnect/acf-relationship-multisite
Description: Get post, pages and custom post types from another site of your WordPress Multisite installation. This plugin requires the installation/activation of Advanced Custom Fields (ACF) >= 5.2.7.
Version: 1.2.0
Author: Thomas Meyer
Author URI: www.dreihochzwo.de
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
// 1. set text domain
// Reference: https://codex.wordpress.org/Function_Reference/load_plugin_textdomain
load_plugin_textdomain( 'acf-relationship-multisite', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
// 2. Include field type for ACF5
// $version = 5 and can be ignored until ACF6 exists
function include_field_types_relationship_multisite( $version ) {
include_once('acf-relationship-multisite-v5.php');
}
add_action('acf/include_field_types', 'include_field_types_relationship_multisite');
?>