{"id":10291916,"date":"2018-05-17T16:40:35","date_gmt":"2018-05-17T16:40:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/template_redirect\/"},"modified":"2018-05-17T16:40:35","modified_gmt":"2018-05-17T16:40:35","slug":"template_redirect","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/template_redirect\/","title":{"rendered":"template_redirect"},"content":{"rendered":"<p>Hi! I&#8217;m Gabor from Nextendweb. We have a plugin, which uses output buffers to call in our files and the part where our code would run is closed if your plugin is installed too. Our senior developer took a look at your code and what he would suggest is, that in this file:<br \/>\nseo-wordpress\\seo-rewritetitle-class.php<br \/>\nwhere currently you have this function:<\/p>\n<pre><code>function zeo_final_title(){\n    \/\/ Use object to avoid namespace collisions\n  $zeo_rewrite_title = new zeo_rewrite_title();\n\n  \/\/ We want to act when the page is 99% complete\n  add_action(&#039;wp_footer&#039;, array(&amp;$zeo_rewrite_title, &#039;wpzeo_footer&#039;));\n\n  \/\/ There is no action hook for &quot;start of processing&quot;,\n  \/\/ so we use this implicitly.\n  $zeo_rewrite_title-&gt;starting();\n}<\/code><\/pre>\n<p>that could be changed to this:<\/p>\n<pre><code>function zeo_final_title(){\n  $zeo_rewrite_title = new zeo_rewrite_title();\n  $priority = 10;\n  add_action(&#039;template_redirect&#039;, array($zeo_rewrite_title, &#039;starting&#039;), $priority);\n  add_action(&#039;shutdown&#039;, array(&amp;$zeo_rewrite_title, &#039;wpzeo_footer&#039;), -1 * $priority);\n}<\/code><\/pre>\n<p>and because of the priority this way our code would be able to run too. Would you be willing to modify this part of your code?<\/p>\n","protected":false},"template":"","class_list":["post-10291916","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10291916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10291916\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10291916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}