Archive | Functions by letter w RSS feed for this section

wp_get_shortlink

Return a shortlink for a post, page, attachment, or blog.This function exists to provide a shortlink tag that all themes and plugins can target. A plugin must hook in to provide the actual shortlinks. Default shortlink support is limited to providing ?p= style links for posts. Plugins can short-circuit this function via the pre_get_shortlink filter or filter the output via the get_shortlink filter.

3749

Continue reading

wp_get_schedules

Retrieve supported and filtered Cron recurrences.The supported recurrences are ‘hourly’ and ‘daily’. A plugin may add more by hooking into the ‘cron_schedules’ filter. The filter accepts an array of arrays. The outer array has a key that is the name of the schedule or for example ‘weekly’. The value is an array with two keys, one is ‘interval’ and the other is ‘display’.

3747

Continue reading

wp_get_referer

Retrieve referer from ‘_wp_http_referer’ or HTTP referer. If it’s the same as the current request URL, will return false.

3743

Continue reading