<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged plugin-api</title>
<link>https://www.question2answer.org/qa/tag/plugin-api</link>
<description>Powered by Question2Answer</description>
<item>
<title>Plugin API: Layer - Possibility to add priority key for layer</title>
<link>https://www.question2answer.org/qa/22878/plugin-api-layer-possibility-to-add-priority-key-for-layer</link>
<description>

&lt;p&gt;
	As far as I know there is not such priority render system for layer ( just like WordPress hook ) where we can priotize function to override other plugin layer.
&lt;br&gt;
	
&lt;br&gt;
	Example:
&lt;br&gt;
	
&lt;br&gt;
	&lt;strong&gt;Plugin X1&lt;/strong&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#b22222;&quot;&gt;function head_script()
&lt;br&gt;
	{
&lt;br&gt;
	qa_html_theme:base::head_script();&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#696969;&quot;&gt;//plugin x1 script;&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#b22222;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	
&lt;br&gt;
	&lt;strong&gt;Plugin X2&lt;/strong&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#b22222;&quot;&gt;function head_script()
&lt;br&gt;
	{
&lt;br&gt;
	qa_html_theme:base::head_script();&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#696969;&quot;&gt;//plugin x2 script;&lt;/span&gt;
&lt;br&gt;
	&lt;span style=&quot;color:#b22222;&quot;&gt;}&lt;/span&gt;
&lt;br&gt;
	
&lt;br&gt;
	So here how system will priotize the layer for each plugin? Is there any key to define? If yes how? If not than this is really important when there will be more plugin will start to add same layer for them functionality.&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;EDIT:&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	I just encountered with this issue while creating another plugin and want to add layer which I have alreqdy been used for other plugin and now it is not allowing addition to that code.&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;&lt;span style=&quot;color:#b22222;&quot;&gt;$this-&amp;gt;output('&amp;lt;DIV CLASS=&quot;qa-q-list-item '.&lt;/span&gt;&lt;span style=&quot;color:#696969;&quot;&gt;$this-&amp;gt;myclasshere&lt;/span&gt;&lt;span style=&quot;color:#b22222;&quot;&gt;.rtrim(' '.@$q_item['classes']).'&quot; '.@$q_item['tags'].'&amp;gt;');&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	Here I am trying to add another class from another plugin but it is not allowing to add and system neither override nor add.&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/22878/plugin-api-layer-possibility-to-add-priority-key-for-layer</guid>
<pubDate>Fri, 05 Apr 2013 10:21:44 +0000</pubDate>
</item>
</channel>
</rss>