本文整理匯總了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;
}