public function init() { self::$taxonomies = get_taxonomies(); foreach (self::$taxonomies as $key => $value) { add_filter("manage_edit-{$value}_columns", array(&$this, 'add_column_header')); add_filter("manage_{$value}_custom_column", array(&$this, 'add_column_value'), 10, 3); add_action("{$value}_add_form_fields", array(&$this, 'term_group_add_form_field')); add_action("{$value}_edit_form_fields", array(&$this, 'term_group_edit_form_field')); } add_filter("manage_edit-tags_columns", array(&$this, 'add_column_header')); add_action('create_term', array(&$this, 'add_edit_term_group')); add_action('edit_term', array(&$this, 'add_edit_term_group')); add_action('quick_edit_custom_box', array(&$this, 'quick_edit_term_group'), 10, 3); }
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * Set up the autoloader. */ set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/lib/')); spl_autoload_extensions('.class.php'); if (!function_exists('buffered_autoloader')) { function buffered_autoloader($c) { try { spl_autoload($c); } catch (Exception $e) { $message = $e->getMessage(); return $message; } } } spl_autoload_register('buffered_autoloader'); /** * Get the plugin object. All the bookkeeping and other setup stuff happens here. */ $tctgo_plugin = TCTGO_Plugin::get_instance();