forked from seagyn/wcct16
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wcct16.php
31 lines (26 loc) · 918 Bytes
/
wcct16.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
<?php
/*
Plugin Name: WordCamp Cape Town 2016 - Continuous Integration
Plugin URI: https://2016.capetown.wordcamp.org/session/a-basic-introduction-to-continuous-integration-with-wordpress/
Description: A nice little demo of absolutely nothing to achieve everything.
Version: 0.5
Author: Seagyn Davis
Author URI: http://www.seagynsdavis.com
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wcct16
*/
namespace WCCT;
function wcct_save_option( $name, $value ){
update_option( $name, $value );
}
function wcct_get_option( $name ){
$option = get_option( 'wcct_' . $name );
return get_option( 'wcct_' . $name );
}
function wcct_save_post_meta( $post_id, $meta_key, $meta_value ){
update_post_meta( $post_id, 'wcct_' . $meta_key, $meta_value );
}
function wcct_get_post_meta( $post_id, $meta_key, $single ){
get_post_meta( $post_id, 'wcct_' . $meta_key, $single );
}