forked from Jeradin/acf-website-field
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacf-website_field.php
60 lines (43 loc) · 916 Bytes
/
acf-website_field.php
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
<?php
/*
Plugin Name: Advanced Custom Fields: Website Field for ACF v5
Plugin URI: https://github.com/Jeradin/acf-website-field
GitHub Plugin URI: https://github.com/Jeradin/acf-website-field
Description: Website Title field for Advanced Custom Fields
Version: 1.5.9.5
Author: Geet Jacobs
Author URI: http://anagr.am
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
if( is_admin() ) {
require_once( 'class-plugin-updater.php' );
}
class acf_website_field_plugin
{
/*
* Construct
*
* @description:
* @since: 3.6
* @created: 1/04/13
*/
function __construct()
{
// version 5+ ONLY!!!
add_action('acf/include_field_types', array($this, 'register_fields'));
}
/*
* register_fields
*
* @description:
* @since: 3.6
* @created: 1/04/13
*/
function register_fields()
{
include_once('website_url.php');
}
}
new acf_website_field_plugin();
?>