WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

POP3::top() public WP 1.0

Это метод класса: POP3{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$POP3 = new POP3();
$POP3->top ( $msgNum, $numLines );

Код POP3::top() WP 5.5.1

wp-includes/class-pop3.php
<?php
function top ($msgNum, $numLines = "0") {
    //  Gets the header and first $numLines of the msg body
    //  returns data in an array with each returned line being
    //  an array element. If $numLines is empty, returns
    //  only the header information, and none of the body.

    if(!isset($this->FP)) {
        $this->ERROR = "POP3 top: " . _("No connection to server");
        return false;
    }
    $this->update_timer();

    $fp = $this->FP;
    $buffer = $this->BUFFER;
    $cmd = "TOP $msgNum $numLines";
    fwrite($fp, "TOP $msgNum $numLines\r\n");
    $reply = fgets($fp, $buffer);
    $reply = $this->strip_clf($reply);
    if($this->DEBUG) {
        @error_log("POP3 SEND [$cmd] GOT [$reply]",0);
    }
    if(!$this->is_ok($reply))
    {
        $this->ERROR = "POP3 top: " . _("Error ") . "[$reply]";
        return false;
    }

    $count = 0;
    $MsgArray = array();

    $line = fgets($fp,$buffer);
    while ( !preg_match('/^\.\r\n/',$line))
    {
        $MsgArray[$count] = $line;
        $count++;
        $line = fgets($fp,$buffer);
        if(empty($line))    { break; }
    }

    return $MsgArray;
}