get_id() : ( isset( $object->ID ) ? (int) $object->ID : 0 ); if ( ! $id ) { return; } $history = JournalReader::history( $id, 10 ); if ( empty( $history ) ) { echo '

' . esc_html__( 'Recast has not changed this subscription.', 'recast-subscriptions' ) . '

'; return; } echo ''; } /** * Label of a change, or a readable fallback when it is no longer registered. * * @param string $operation_id Operation id. * @return string */ private static function operation_label( $operation_id ) { try { return Plugin::instance()->operations()->get( $operation_id )->describe()->label; } catch ( \Exception $e ) { return Labels::humanize( str_replace( '.', ' ', (string) $operation_id ) ); } } }