نیازی به تغییر PHP نیست کافیه اینو تو CSS هاتون بنویسید:

کد HTML:
.post-body entry-content{
text-align: justify;
 direction: rtl
}