acf_pro_updates::modify_plugin_update_message()
modify_plugin_update_message
Displays an update message for plugin list screens.
@type function
{} Это метод класса: acf_pro_updates{}
Хуков нет.
Возвращает
$message
.
Использование
$acf_pro_updates = new acf_pro_updates(); $acf_pro_updates->modify_plugin_update_message( $plugin_data, $response );
- $plugin_data (обязательный)
- -
- $response (обязательный)
- -
Список изменений
С версии 5.3.8 | Введена. |
Код acf_pro_updates::modify_plugin_update_message() acf pro updates::modify plugin update message ACF 5.10.2
function modify_plugin_update_message( $plugin_data, $response ) { // bail ealry if has key if ( acf_pro_get_license_key() ) { return; } // display message echo '<br />' . sprintf( __( 'To enable updates, please enter your license key on the <a href="%1$s">Updates</a> page. If you don\'t have a licence key, please see <a href="%2$s" target="_blank">details & pricing</a>.', 'acf' ), admin_url( 'edit.php?post_type=acf-field-group&page=acf-settings-updates' ), 'https://www.advancedcustomfields.com/pro/?utm_source=ACF%2Bpro%2Bplugin&utm_medium=insideplugin&utm_campaign=ACF%2Bupgrade&utm_content=updates' ); }