ACF_Admin_Taxonomies::get_action_notice_text
Gets the translated action notice text for list table actions (activate, deactivate, sync, etc.).
Метод класса: ACF_Admin_Taxonomies{}
Хуков нет.
Возвращает
Строку.
Использование
$ACF_Admin_Taxonomies = new ACF_Admin_Taxonomies(); $ACF_Admin_Taxonomies->get_action_notice_text( $action, $count );
- $action(строка) (обязательный)
- The action being performed.
- $count(int)
- The number of items the action was performed on.
По умолчанию:1
Список изменений
| С версии 6.1 | Введена. |
Код ACF_Admin_Taxonomies::get_action_notice_text() ACF Admin Taxonomies::get action notice text ACF 6.4.2
public function get_action_notice_text( $action, $count = 1 ) {
$text = '';
$count = (int) $count;
switch ( $action ) {
case 'acfactivatecomplete':
$text = sprintf(
/* translators: %s number of taxonomies activated */
_n( 'Taxonomy activated.', '%s taxonomies activated.', $count, 'acf' ),
$count
);
break;
case 'acfdeactivatecomplete':
$text = sprintf(
/* translators: %s number of taxonomies deactivated */
_n( 'Taxonomy deactivated.', '%s taxonomies deactivated.', $count, 'acf' ),
$count
);
break;
case 'acfduplicatecomplete':
$text = sprintf(
/* translators: %s number of taxonomies duplicated */
_n( 'Taxonomy duplicated.', '%s taxonomies duplicated.', $count, 'acf' ),
$count
);
break;
case 'acfsynccomplete':
$text = sprintf(
/* translators: %s number of taxonomies synchronized */
_n( 'Taxonomy synchronized.', '%s taxonomies synchronized.', $count, 'acf' ),
$count
);
break;
}
return $text;
}