本文整理匯總了PHP中SitePress::get_translatable_documents方法的典型用法代碼示例。如果您正苦於以下問題:PHP SitePress::get_translatable_documents方法的具體用法?PHP SitePress::get_translatable_documents怎麽用?PHP SitePress::get_translatable_documents使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SitePress
的用法示例。
在下文中一共展示了SitePress::get_translatable_documents方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* WPML_Translations_Queue_Jobs_Model constructor.
*
* @param SitePress $sitepress
* @param TranslationManagement $tm_instance
* @param WPML_TM_API $tm_api
* @param WPML_TM_Post_Link_Factory $post_link_factory
* @param array $translation_jobs
*/
public function __construct($sitepress, &$tm_instance, &$tm_api, &$post_link_factory, array $translation_jobs)
{
parent::__construct($tm_instance);
$this->translation_jobs = $translation_jobs;
$this->tm_api =& $tm_api;
$this->post_link_factory =& $post_link_factory;
$this->post_types = $sitepress->get_translatable_documents(true);
$this->post_types = apply_filters('wpml_get_translatable_types', $this->post_types);
}