-
Notifications
You must be signed in to change notification settings - Fork 16
/
functions.php
78 lines (66 loc) · 2.4 KB
/
functions.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/*
Plugin Name: @web559 Core Functionality Plugin
Plugin URI: http://www.ericshansby.com
Description: Miscellaneous enhancements.
Version: 0.1
Author: Eric Shansby
Author URI: http://www.ericshansby.com
License: A "Slug" license name e.g. GPL2
*/
/**
* The short description
*
* As many lines of extendend description as you want {@link element}
* links to an element {@link http://www.example.com Example hyperlink inline link} links to
* a website. The inline source tag displays function source code in the description:
* {@source }
*
* Here are the tags:
*
* @abstract
* @access public or private
* @author author name <author@email>
* @copyright name date
* @deprecated description
* @deprec alias for deprecated
* @example /path/to/example
* @exception Javadoc-compatible, use as needed
* @global type $globalvarname OR type description of global variable usage in a function
* @ignore
* @internal private information for advanced developers only
* @param type [$varname] description
* @return type description
* @link URL
* @name procpagealias or $globalvaralias
* @magic phpdoc.de compatibility
* @package package name
* @see name of another element that can be documented,
* produces a link to it in the documentation
* @since a version or a date
* @static
* @staticvar type description of static variable usage in a function
* @subpackage sub package name, groupings inside of a project
* @throws Javadoc-compatible, use as needed
* @todo phpdoc.de compatibility
* @var type a data type for a class variable
* @version version
*/
/**
* Include all files in the functions and includes folder folder
*
* I find it more convenient to split tasks into different files.
* Instead of adding code directly to functions.php, add your code
* to a PHP file in the includes folder.
*
* @example wp-content/themes/{theme}/functions/charts.on.php
* @example wp-content/themes/{theme}/includes/charts.on.php
*/
/* Include all files in the FUNCTIONS folder ending in .on.php */
foreach (glob( dirname( __FILE__ ) . "/functions/*.on.php") as $filename) {
include $filename;
}
/* Include all files in the INCLUDES folder ending in .on.php */
foreach (glob( dirname( __FILE__ ) . "/includes/*.on.php") as $filename) {
include $filename;
}