-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathacf-smart-button.php
executable file
·40 lines (34 loc) · 1022 Bytes
/
acf-smart-button.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
<?php
/*
Plugin Name: Advanced Custom Fields: Smart Button
Plugin URI: https://github.com/gillesgoetsch/acf-smart-button
Description: A button field that lets you choose between internal and external and gives you either a post_object or a url field
Version: 1.0.4
Author: Gilles Goetsch
Author URI: https://gillesgoetsch.ch
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/**
* Load plugin textdomain.
*
* @see https://codex.wordpress.org/Function_Reference/load_plugin_textdomain
*
* @type action
* @since 1.0.0
*/
function acf_smart_button_load_textdomain() {
load_plugin_textdomain( 'acf-smart-button', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
}
add_action( 'init', 'acf_smart_button_load_textdomain' );
/**
* Include field.
*
* @type action
* @since 1.0.0
*/
function include_field_types_smart_button( $version ) {
include_once('acf-smart-button-v5.php');
}
add_action('acf/include_field_types', 'include_field_types_smart_button');
?>