page; $user = $this->getUser(); if ( wfRunHooks( 'CustomEditor', array( $page, $user ) ) ) { $editor = new EditPage( $page ); $editor->edit(); } } }