-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfieldmanager-terms.php
34 lines (31 loc) · 1.06 KB
/
fieldmanager-terms.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
<?php
/**
* @package Fieldmanager
* @subpackage Terms
* @version 0.1
*/
/*
Plugin Name: Fieldmanager Terms
Plugin URI: http://github.com/bcampeau/fieldmanager-terms
Description: Adds automatic term extraction from post content for Fieldmanager taxonomy-based fields
Author: Bradford Campeau-Laurion
Version: 0.1
Author URI: http://www.alleyinteractive.com/
*/
require_once( dirname( __FILE__ ) . '/php/class-fieldmanager-terms.php' );
require_once( dirname( __FILE__ ) . '/php/class-plugin-dependency.php' );
function fieldmanager_terms_dependency() {
$fieldmanager_dependency = new Plugin_Dependency( 'Fieldmanager Terms', 'Fieldmanager', 'https://github.com/netaustin/wordpress-fieldmanager' );
if( !$fieldmanager_dependency->verify() ) {
// Cease activation
die( $fieldmanager_dependency->message() );
}
}
register_activation_hook( __FILE__, 'fieldmanager_terms_dependency' );
/**
* Get the base URL for this plugin.
* @return string URL pointing to Fieldmanager Terms top directory.
*/
function fieldmanager_terms_get_baseurl() {
return plugin_dir_url( __FILE__ );
}