acf_pro_updates::init()
init
description
Метод класса: acf_pro_updates{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$acf_pro_updates = new acf_pro_updates(); $acf_pro_updates->init();
Список изменений
С версии 5.5.10 | Введена. |
Код acf_pro_updates::init() acf pro updates::init ACF 6.0.4
function init() { // bail early if no show_updates. if ( ! acf_get_setting( 'show_updates' ) ) { return; } // bail early if not a plugin (included in theme). if ( ! acf_is_plugin_active() ) { return; } // register update acf_register_plugin_update( array( 'id' => 'pro', 'key' => acf_pro_get_license_key(), 'slug' => acf_get_setting( 'slug' ), 'basename' => acf_get_setting( 'basename' ), 'version' => acf_get_setting( 'version' ), ) ); add_action( 'admin_init', 'acf_pro_check_defined_license', 20 ); add_action( 'current_screen', 'acf_pro_display_activation_error', 30 ); // admin if ( is_admin() ) { add_action( 'in_plugin_update_message-' . acf_get_setting( 'basename' ), array( $this, 'modify_plugin_update_message' ), 10, 2 ); } }