<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shashikant Y</title>
    <description>The latest articles on DEV Community by Shashikant Y (@kantbtrue).</description>
    <link>https://dev.to/kantbtrue</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F128254%2F4e554952-68b1-4b70-a17f-32d83b5c6b3e.jpeg</url>
      <title>DEV Community: Shashikant Y</title>
      <link>https://dev.to/kantbtrue</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kantbtrue"/>
    <language>en</language>
    <item>
      <title>How to get feedback from your anonymous plugin user at wordpress.org</title>
      <dc:creator>Shashikant Y</dc:creator>
      <pubDate>Wed, 28 Oct 2020 10:55:08 +0000</pubDate>
      <link>https://dev.to/kantbtrue/how-to-get-feedback-from-your-anonymous-plugin-user-at-wordpress-org-155f</link>
      <guid>https://dev.to/kantbtrue/how-to-get-feedback-from-your-anonymous-plugin-user-at-wordpress-org-155f</guid>
      <description>&lt;p&gt;If you are a WordPress plugin developer who shares their plugins on wordpress.org and you are not getting feedback from your anonymous users, then this article just meant for you.&lt;/p&gt;

&lt;p&gt;Most of the early stage developers do not integrate a legitimate link to ask the users for feedback. I am an experienced WordPress developer still I also made the same mistake ;)&lt;/p&gt;

&lt;p&gt;Wordpress.org does not give you any data regarding the users for your plugin. So it becomes a bit tuff to ask the users for feedback, and seeing other plugins 100s of feedback on the platform gets you a sense of jealousy. And you start wondering why the hell I'm the only one who is not getting the feedback on the platform.&lt;/p&gt;

&lt;p&gt;If this is the case, then I feel there are only two possible reasons - 1. Your plugin is just crap 2. You didn't have any inbuilt option in your plugin to drive your users to the feedback section.&lt;/p&gt;

&lt;p&gt;In this article, I will share how to edit the WordPress footer text "Thank you for creating with WordPress." and use it as your feedback drive channel.&lt;/p&gt;

&lt;p&gt;To edit the message, you can use this filter &lt;code&gt;admin_footer_text&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cd"&gt;/**
 * Add feedback message in WordPress dashboard footer area.
 *
 * @param string $text WordPress footer text.
 * 
 * @return string 
 */&lt;/span&gt;
&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;kantbtrue_wp_footer_msg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$text&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="cm"&gt;/* Translators: 1. The plugin name */&lt;/span&gt;
    &lt;span class="nv"&gt;$text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="nf"&gt;__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'Thank you for installing &amp;lt;strong&amp;gt;%1$s&amp;lt;/strong&amp;gt;.'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'textdomain'&lt;/span&gt; &lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="s1"&gt;'plugin name'&lt;/span&gt;
    &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$text&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'admin_footer_text'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'kantbtrue_wp_footer_msg'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Resource
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://developer.wordpress.org/reference/hooks/admin_footer_text/"&gt;WordPress Codex&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>plugin</category>
      <category>tutorial</category>
      <category>php</category>
    </item>
    <item>
      <title>WordPress plugin action links - thorough notes</title>
      <dc:creator>Shashikant Y</dc:creator>
      <pubDate>Thu, 01 Oct 2020 16:11:01 +0000</pubDate>
      <link>https://dev.to/kantbtrue/wordpress-plugin-action-links-thorough-notes-2pda</link>
      <guid>https://dev.to/kantbtrue/wordpress-plugin-action-links-thorough-notes-2pda</guid>
      <description>&lt;p&gt;Recently I have released a simple light-weight plugin on &lt;a href="https://wordpress.org/plugins/kantbtrue-taxonomy-color/"&gt;WordPress.org to add color to the taxonomies&lt;/a&gt;. While working on the plugin, I was thinking of the past me who don't know much about the WordPress plugin development's best practices.&lt;/p&gt;

&lt;p&gt;If you are an aspiring WP plugin developer, then this post may help you to understand one of the most important things, that is action links.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are action links?
&lt;/h2&gt;

&lt;p&gt;WordPress plugin action links (i.e., activate, deactivate, delete) are those links that are visible under each plugin on the plugin page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Purpose of the action links?
&lt;/h2&gt;

&lt;p&gt;Plugin action links are a useful way to provide helpful links to your plugin users like contact, support, or settings page.&lt;/p&gt;

&lt;p&gt;One good point about the action link is, it will only be visible when your plugin is active. So, no worry about the visibility of links when your plugin isn't active.&lt;/p&gt;

&lt;h2&gt;
  
  
  How can I add my own action links?
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;plugin_action_links_{$plugin_file}&lt;/code&gt; filter is responsible for adding action links where &lt;code&gt;$plugin_file&lt;/code&gt; referes to the path of plugin file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="nb"&gt;function_exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'kantbtrue_action_links'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="cd"&gt;/**
     * Filters the list of action links displayed for a specific plugin in the Plugins list table
     * 
     * @param array $actions An array of plugin action links.
     */&lt;/span&gt;
    &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;add_action_links&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$actions&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$links&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="s1"&gt;'&amp;lt;a href="'&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;admin_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'admin.php?page=kbt_settings'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="s1"&gt;'"&amp;gt;Settings&amp;lt;/a&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;array_merge&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$actions&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$links&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'plugin_action_links_'&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;plugin_basename&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="k"&gt;__FILE__&lt;/span&gt; &lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="s1"&gt;'kantbtrue_action_links'&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;More info about the hook - &lt;a href="https://developer.wordpress.org/reference/hooks/plugin_action_links_plugin_file/"&gt;WordPress developer hook page&lt;/a&gt;&lt;br&gt;
More examples - &lt;a href="https://codex.wordpress.org/Plugin_API/Filter_Reference/plugin_action_links_(plugin_file_name)"&gt;Wordpress codex page&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>plugin</category>
      <category>tutorial</category>
      <category>php</category>
    </item>
  </channel>
</rss>
