Wouldn’t it be better practice to use get_the_title(..) in this case?
directly accessing the post object’s data member would bypass applying
filters and enforcing protected and private settings, unless that’s
explicitly desired.
Wouldn’t it be better practice to use get_the_title(..) in this case?
directly accessing the post object’s data member would bypass applying
filters and enforcing protected and private settings, unless that’s
explicitly desired.
3 Comments
Issac Wise
Jan 01, 2021at 2:14 pmWouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.
Ellen Ibarra
October 13, 2020Thenks Demo User for Wouldn’t it be better practice to use get_the_title.
Tisa Person
October 13, 2020Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.