acf_get_bidirectional_field_settings_instruction_text()
Returns the translated instructional text for the message field for the bidirectional field settings.
Хуков нет.
Возвращает
Строку. The html containing the instructional message.
Использование
acf_get_bidirectional_field_settings_instruction_text();
Список изменений
| С версии 6.2 | Введена. |
Код acf_get_bidirectional_field_settings_instruction_text() acf get bidirectional field settings instruction text ACF 6.4.2
function acf_get_bidirectional_field_settings_instruction_text() {
/* translators: %s the URL to ACF's bidirectional relationship documentation */
$message = '<p class="acf-feature-notice with-warning-icon">' . sprintf( __( 'Enabling the bidirectional setting allows you to update a value in the target fields for each value selected for this field, adding or removing the Post ID, Taxonomy ID or User ID of the item being updated. For more information, please read the <a href="%s" target="_blank">documentation</a>.', 'acf' ), acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/bidirectional-relationships/', 'docs', 'bidirectional' ) ) . '</p>';
return $message;
}