acf_pro_updates::init()
init
description
@type function
{} Это метод класса: acf_pro_updates{}
Хуков нет.
Возвращает
$post_id
. (int)
Использование
$acf_pro_updates = new acf_pro_updates(); $acf_pro_updates->init();
Список изменений
С версии 5.5.10 | Введена. |
Код acf_pro_updates::init() acf pro updates::init ACF 5.10.2
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' ), ) ); // admin if ( is_admin() ) { add_action( 'in_plugin_update_message-' . acf_get_setting( 'basename' ), array( $this, 'modify_plugin_update_message' ), 10, 2 ); } }