Đã hoàn thành

328257 Wordpress/Custom HTTP Headers

We need a quick Wordpress plugin to do the following:

Use the 'send_headers' action to add HTTP headers on Wordpress posts based on the modified date of the post.

So the plugin should work like this pseudcode:

add_action('send_headers', 'add_my_custom_headers');

function add_my_custom_headers() {

// CODE TO MAKE SURE THIS IS A POST

if ( POST IS TODAY ) {

header("x-test-current-date: Today");

}

elsif ( POST IS YESTERDAY ) {

header("x-test-current-date: YESTERDAY");

}

elsif ( POST LAST UPDATED BEFORE YESTERDAY ) {

header("x-test-current-date: OLD");

}

elsif ( POST LAST UPDATED BEFORE A WEEK AGO ) {

header("x-test-current-date: REALLY OLD");

}

else {

header("x-test-post-date: ANCIENT");

}

}

We'll figure out how to finish it and what headers we want to use, we just need someone to create the functional shell to do the date calcs and the appropriate logic.

Kĩ năng: Bất kì công việc gì, PHP, WordPress

Xem nhiều hơn: wordpress x, wordpress custom, wordpress custom plugin, logic x, action figure, today wordpress, wordpress post http, custom function php, wordpress custom work, http post headers, wordpress else, logic plugin, add http header, custom function wordpress, calcs, need someone create wordpress, wordpress plugin modified, wordpress custom http header, wordpress plugin custom code, custom shell

Về Bên Thuê:
( 1 Nhận xét )

ID dự án: #2074065

Được trao cho:

$55 USD trong 1 ngày
(50 Đánh Giá)
5.2