{"id":4888,"date":"2020-06-03T12:08:57","date_gmt":"2020-06-03T12:08:57","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=4888"},"modified":"2020-06-09T13:22:23","modified_gmt":"2020-06-09T13:22:23","slug":"filter-cron-interval","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/nl\/wp-grid-builder\/filter-cron-interval\/","title":{"rendered":"Filter cron-interval"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element \" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<div class=\"container flex items-center justify-between\">\n<h1 class=\"entry-title\">\/cron\/interval<\/h1>\n<\/div>\n<div id=\"article-wrapper\" class=\"container\">\n<p>This filter is called before to set the cron interval.<\/p>\n<p>It allows to modifies interval between each WordPress cron job of the indexer. By default the interval is set to 60s. The WordPress cron API is only used as a fallback if the internal cron system (based on asynchronous requests) failed due to server limit exceeded.<\/p>\n<table class=\"wp-block-table arguments-table\">\n<tbody>\n<tr>\n<td>Argument<\/td>\n<td>Type<\/td>\n<td>Description<\/td>\n<\/tr>\n<tr>\n<td>$interval<\/td>\n<td>integer<\/td>\n<td>Cron interval in seconds<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"code-syntax-block code-syntax-wrapper\">\n<p>[pastacode lang=&#8221;php&#8221; manual=&#8221;function%20prefix_cron_interval(%20%24interval%20)%20%7B%0A%0A%09%2F%2F%20Set%20interval%20to%2030s.%20%0A%09return%2030%3B%0A%0A%7D%0A%0Aadd_filter(%20&#8217;wp_grid_builder%2Fcron%2Finterval&#8217;%2C%20&#8217;prefix_cron_interval&#8217;%2C%2010%2C%201%20)%3B&#8221; message=&#8221;&#8221; highlight=&#8221;&#8221; provider=&#8221;manual&#8221;\/]<\/p>\n<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\/cron\/interval This filter is called before to set the cron interval. It allows to modifies interval between each WordPress cron job of the indexer. By default the interval is set to 60s. The WordPress cron API is only used as a fallback if the internal cron system (based on asynchronous requests) failed due to server&hellip;<\/p>","protected":false},"author":2,"featured_media":4996,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[44,57,43],"tags":[],"class_list":["post-4888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","category-php-filters","category-wp-grid-builder","category-44","category-57","category-43","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/comments?post=4888"}],"version-history":[{"count":2,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4888\/revisions"}],"predecessor-version":[{"id":5076,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/posts\/4888\/revisions\/5076"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media\/4996"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/media?parent=4888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/categories?post=4888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/nl\/wp-json\/wp\/v2\/tags?post=4888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}