Mam taki obiekt
object(LP_Course)[4629]
public 'course_type' => null
protected '_viewing_item' => null
protected '_curd' =>
object(LP_Course_CURD)[4636]
protected '_meta_type' => string 'post' (length=4)
protected '_error_messages' =>
array (size=1)
'COURSE_NOT_EXISTS' => string 'Course does not exist.' (length=22)
protected '_post_type' => string 'lp_course' (length=9)
protected '_data' =>
array (size=16)
'status' => string 'publish' (length=7)
'require_enrollment' => string '' (length=0)
'retake_count' => string '0' (length=1)
'featured' => string 'yes' (length=3)
'block_lesson_content' => string 'no' (length=2)
'course_result' => string 'evaluate_lesson' (length=15)
'passing_conditional' => string '' (length=0)
'external_link' => string '' (length=0)
'payment' => string '' (length=0)
protected '_loaded' => boolean true
protected '_content' => string '' (length=0)
protected '_video' => null
protected '_id' => int 2718
........
Próbuję np. wyciągnąć 2718 z _id takim kodem
echo $course->_id;
ale zwraca następujący błąd
Notice: LP_Abstract_Course::_id was called with an argument that is deprecated since version 3.0.11 with no alternative available.
Jak to zrobić poprawnie?