-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfieldmanager-posts.php
More file actions
34 lines (31 loc) · 1.05 KB
/
Copy pathfieldmanager-posts.php
File metadata and controls
34 lines (31 loc) · 1.05 KB
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 Posts
* @version 0.1
*/
/*
Plugin Name: Fieldmanager Posts
Plugin URI: http://github.com/bcampeau/fieldmanager-terms
Description: Adds automatic related post matching for Fieldmanager post-based fields
Author: Bradford Campeau-Laurion
Version: 0.1
Author URI: http://www.alleyinteractive.com/
*/
require_once( dirname( __FILE__ ) . '/php/class-fieldmanager-posts.php' );
require_once( dirname( __FILE__ ) . '/php/class-plugin-dependency.php' );
function fieldmanager_posts_dependency() {
$fieldmanager_dependency = new Plugin_Dependency( 'Fieldmanager Posts', 'Fieldmanager', 'https://github.com/netaustin/wordpress-fieldmanager' );
if( !$fieldmanager_dependency->verify() ) {
// Cease activation
die( $fieldmanager_dependency->message() );
}
}
register_activation_hook( __FILE__, 'fieldmanager_posts_dependency' );
/**
* Get the base URL for this plugin.
* @return string URL pointing to Fieldmanager Posts top directory.
*/
function fieldmanager_posts_get_baseurl() {
return plugin_dir_url( __FILE__ );
}