哦,看起来是我写的剧本,所以让我试着回答你;-)
例如,您可以:
在模板中添加自己的动作挂钩,使用javascript将ping移动到discus注释下方,劫持disqus_language_filter
Discus插件的过滤器如果选择最后一个选项,则可以使用PingsList
改为类:
/**
* Modified version of PingsList to display the pings below the Disqus comments.
* @see http://wordpress.stackexchange.com/a/174468/26350
*/
class PingsList
{
protected $pd;
protected $pw;
public function __construct( IPingsView $pw, IPingsData $pd )
{
$this->pw = $pw;
$this->pd = $pd;
}
public function init()
{
$this->pd->init();
add_filter( \'disqus_language_filter\', array( $this, \'disqus_language_filter\' ) );
}
public function disqus_language_filter( $lang )
{
$this->pw->template( $this->pd->get_data() );
return $lang;
}
} // end class
这将显示论文注释下方的ping。