есть плагин для WP leyka
вытащил откуда то код переменной и вывел его на печать:
$campaign = new Leyka_Campaign(get_post());
через print_f
Leyka_Campaign Object
(
[_id:Leyka_Campaign:private] => 690
[_post_object:Leyka_Campaign:private] => WP_Post Object
(
[ID] => 690
[post_author] => 3
[post_date] => 2018-10-17 23:54:06
[post_date_gmt] => 2018-10-17 20:54:06
[post_content] =>
[post_title] => тест
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => %d1%82%d0%b5%d1%81%d1%82
[to_ping] =>
[pinged] =>
[post_modified] => 2018-10-18 02:25:36
[post_modified_gmt] => 2018-10-17 23:25:36
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://bf-kislorod.ru/?post_type=leyka_campaign&p=690
[menu_order] => 0
[post_type] => leyka_campaign
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[_campaign_meta:Leyka_Campaign:private] => Array
(
[payment_title] => тест
[campaign_template] => default
[campaign_target] => 1111
[ignore_global_template] =>
[is_finished] => 1
[target_state] => no_target
[target_reaching_mailout_sent] =>
[target_reaching_mailout_errors] =>
[date_target_reached] => 0
[count_views] => 9
[count_submits] => 1
[total_funded] => 500
)
)
никак не могу сохранить в новую переменную значение [is_finished] => 1.
Помогите, а то видимо тупею ....