/** * Initiate the core metaboxes and fields. * * @access private * @since 0.8 * * @return void */ public static function init() { // Grab an instance of the Connections object. $instance = Connections_Directory(); // Build the array that defines the core metaboxes. self::register(); // Register the core metaboxes the Metabox API. foreach (self::$metaboxes as $atts) { cnMetaboxAPI::add($atts); } // Set the "Visibility" options that can be set by the current user. if (is_user_logged_in()) { self::$visibility = $instance->options->getVisibilityOptions(); } }
/** * Renders the name metabox. * * This is deprecated method, left in place for backward compatibility only. * * @access private * @deprecated * @since 0.8 * @param object $entry An instance of the cnEntry object. */ public function metaboxName($entry) { cnEntryMetabox::name($entry, $metabox = array()); }