11/09/2017 at 10:05 am
#440622
Keymaster
@ Kenneth
I do not really understand what you are trying to do… but here’s the correct code which will get the results you expect:
function update_info( $entry ) {
$data = array();
$IdIn = $entry->getId();
$html = new cnOutput();
$html->set( $IdIn );
$data['phone_numbers'] = array(
'raw' => $entry->getPhoneNumbers(),
'rendered' => $html->getPhoneNumberBlock( array( 'return' => true ) ),
);
var_dump( $data ); die();
}
add_action( 'cn_updated-entry', 'update_info' );
Hope that helps!
