Сбросить логотип компании для всех списков вакансий в менеджере вакансий wp - PullRequest
1 голос
/ 09 июля 2019

Я импортировал все свои списки вакансий с одного сайта на другой, и у меня возникла проблема с URL-адресом логотипа компании. Я пытаюсь сбросить логотип компании для всех списков вакансий, поэтому установите его с помощью фильтра. или найдите способ правильно импортировать изображения.

/* This code will set the default company logo, but if there is already existing logo it will not work*/

add_filter( 'job_manager_default_company_logo', 'smyles_custom_job_manager_logo' );
function smyles_custom_job_manager_logo( $logo_url ){
	// Change the value below to match the filename of the custom logo you want to use
	// Place the file in a /images/ directory in your child theme's root directory.
	// The example provided assumes "/images/custom_logo.png" exists in your child theme
	$filename = 'logo_clear.png';
	
	$logo_url = get_stylesheet_directory_uri() . '/img/' . $filename;
	
	return $logo_url;
	
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...