PHP 인터페이스 Mlp_Language_Api_Interface

저자: Inpsyde GmbH, toscho
파일 보기 프로젝트 열기: inpsyde/multilingual-press 0 사용 예제들

공개 메소드들

메소드 설명
get_translations ( array $args = [] ) : Inpsyde\MultilingualPress\Common\Type\Translation[] Ask for specific translations with arguments.

메소드 상세

get_translations() 공개 메소드

Possible arguments are: - 'site_id' Base site - 'content_id' post or term_taxonomy ID, *not* term ID - 'type' see Mlp_Language_Api::get_request_type(), - 'strict' When TRUE only matching exact translations will be included - 'search_term' if you want to translate a search - 'post_type' for post type archives - 'include_base' bool. Include the base site in returned list
public get_translations ( array $args = [] ) : Inpsyde\MultilingualPress\Common\Type\Translation[]
$args array Optional. If left out, some magic happens.
리턴 Inpsyde\MultilingualPress\Common\Type\Translation[] Array of Mlp_Translation instances, site IDs are the keys