{"id":9749584,"date":"2017-12-04T19:16:36","date_gmt":"2017-12-04T19:16:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/add-class-to-custom-attribute-values-not-resolved\/"},"modified":"2017-12-04T19:16:36","modified_gmt":"2017-12-04T19:16:36","slug":"add-class-to-custom-attribute-values-not-resolved","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/add-class-to-custom-attribute-values-not-resolved\/","title":{"rendered":"add class to custom attribute values-NOT Resolved"},"content":{"rendered":"<p>Hello,<br \/>\nI find it strange or even rude that you closed the topic I started for new replies asking for a line of code to add the functionality that all other property extensions I have worked with come standard (status banners). Now that I have invested so much time into your plugin and don&#8217;t want to change, I simply want to add a custom class to my status attributes so I can style each status a different color. You give me this idea and don&#8217;t tell me how to apply it so when I ask you tell me I need to hire you to do custom work. I have seen other users vote for this feature in your request feature web page.<br \/>\nYou say I can use this:<br \/>\n<code>apply_filters(&#039;wpp::draw_stats::attributes&#039;, $property_stats, $property, $args);<\/code><\/p>\n<p>I just want to do something simple.<\/p>\n<pre><code>&lt;?php if( !empty( $property[&#039;status&#039;] ) ): ?&gt;\n&lt;span class=&quot;property_status&quot;&gt;&lt;?php echo $property[&#039;status&#039;]; ?&gt;&lt;\/span&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre>\n<p>If I could add this and make the result have like 8 characters with no spaces, that would be perfect:<\/p>\n<pre><code>&lt;?php if( !empty( $property[&#039;status&#039;] ) ): ?&gt;\n&lt;span class=&quot;property_status &lt;?php echo $property[&#039;status&#039;]; ?&gt;&quot;&gt;&lt;?php echo $property[&#039;status&#039;]; ?&gt;&lt;\/span&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre>\n<p>please don&#8217;t shut down this topic, perhaps there is someone out there that can help me. Its not important enough to hire you to do, its just something that I feel should already by an option for your plugin.<\/p>\n","protected":false},"template":"","class_list":["post-9749584","topic","type-topic","status-publish","hentry","topic-tag-attributes","topic-tag-classes"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9749584","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\/9749584\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9749584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}