{"id":1414,"date":"2014-01-10T20:45:01","date_gmt":"2014-01-10T20:45:01","guid":{"rendered":"http:\/\/musilda.cz\/?p=1414"},"modified":"2014-01-10T20:45:01","modified_gmt":"2014-01-10T20:45:01","slug":"funkce-get_post_status","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-get_post_status\/","title":{"rendered":"Funkce get_post_status"},"content":{"rendered":"

Jednoduch\u00e1 funkce, kter\u00e1 na z\u00e1klad\u011b id \u010dl\u00e1nku, vr\u00e1t\u00ed jeho aktu\u00e1ln\u00ed status. Pokud jde o id nahran\u00e9ho souboru, vr\u00e1t\u00ed aktu\u00e1ln\u00ed stav p\u0159i\u0159azen\u00e9ho postu (parent).\u00a0<\/p>\n

Pou\u017eit\u00ed:<\/p>\n

\nget_post_status( $ID )\n<\/pre>\n

$ID je id \u010dl\u00e1nku, jeho\u017e status chcete z\u00edskat. Funkci m\u016f\u017eete pou\u017e\u00edt i mimo Loop.<\/p>\n

Hodnoty, kter\u00e9 m\u016f\u017ee funkce vr\u00e1tit:<\/p>\n