本文整理汇总了PHP中SitePress::post_translations方法的典型用法代码示例。如果您正苦于以下问题:PHP SitePress::post_translations方法的具体用法?PHP SitePress::post_translations怎么用?PHP SitePress::post_translations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SitePress
的用法示例。
在下文中一共展示了SitePress::post_translations方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param SitePress $sitepress
* @param WPML_Query_Filter $query_filter
*/
public function __construct(&$sitepress, &$query_filter)
{
$wpdb = $sitepress->wpdb();
$post_translation = $sitepress->post_translations();
$term_translation = $sitepress->term_translations();
parent::__construct($sitepress, $wpdb, $post_translation, $term_translation);
$this->query_filter =& $query_filter;
}
示例2: __construct
/**
* WPML_TM_Translation_Status_Display constructor.
*
* @param wpdb $wpdb
* @param SitePress $sitepress
* @param WPML_Post_Status $status_helper
* @param WPML_Translation_Job_Factory $job_factory
* @param WPML_TM_API $tm_api
*/
public function __construct(&$wpdb, &$sitepress, &$status_helper, &$job_factory, &$tm_api)
{
$post_translation = $sitepress->post_translations();
parent::__construct($wpdb, $sitepress, $post_translation);
$this->status_helper =& $status_helper;
$this->job_factory =& $job_factory;
$this->tm_api =& $tm_api;
}