/** * Registers the entry edit form metaboxes. * * This is deprecated method, left in place for backward compatibility only. * * NOTE: This should only be called by the "load-$page_hook" action. * * @access private * @deprecated * @since 0.8 * @param string $pageHook The page hook to add the entry edit metaboxes to. * @return void */ public function registerEditMetaboxes($pageHook) { // Retrieve all metabox registered with cnMetaboxAPI. $metaboxes = cnMetaboxAPI::get(); foreach ($metaboxes as $metabox) { $metabox['pages'] = array($pageHook); cnMetaboxAPI::add($metabox); } cnMetaboxAPI::register(); }