title: How to make sure changes to a Wordpress plugin won't be lost on plugin update?
body: <p>I'm pretty sure I've read somewhere that you can actually move the main plugin *.php file to somewhere else (I assume under your theme directory) to have it safe in case you made changes to it and your plugin updates. I tried Google but I can't find anything. Google page with good results will suffice.</p>
  
  <p>I've just experienced a situation where my 2 plugins which had its layout changed and accommodated my needs and I want to make sure it doesn't happen again. Apart from having the main file in another location, is there a way to move along any CSS and JS files as well?</p>
  
  <p>In Concrete5 CMS there is a nice way of doing this, by creating a new folder inside a block of an addon (may be regarded as a WP plugin), inside of which you can create copies of main file, any CSS and JS files and then you can simply edit them and choose that template for a page location you are using that block in.</p>
  
  <p>I assume there is no such thing in Wordpress but how close can I get?</p>
  
  <p>UPDATE: I found where I applied that advice on creating a new instance of the file then moving it to the theme directory.
  The plugin in question was HL-Twitter. These are the plugin files:</p>
  
  <pre><code>admin.php
  archive.php
  functions.php
  hl_twitter.php
  hl_twitter_archive.php
  hl_twitter_widget.php
  import.php
  widget.php
  </code></pre>
  
  <p>Now, this is the top contents (commented out) of the hl_twitter_widget.php:</p>
  
  <pre><code>Widget Theme for HL Twitter
  To change this theme, copy hl_twitter_widget.php
  to your current theme folder, do not edit this
  file directly.
  
  Available Properties:
  $before_widget
  $after_widget
  $before_title
  $after_title
  $widget_title
  $show_avatars
  $show_powered_by
  $num_tweets: how many tweets to show
  $tweets: array of $tweet
  $tweet: object representing a tweet
  $tweet-&gt;twitter_tweet_id
  $tweet-&gt;tweet
  $tweet-&gt;lat
  $tweet-&gt;lon
  $tweet-&gt;created
  $tweet-&gt;reply_tweet_id
  $tweet-&gt;reply_screen_name
  $tweet-&gt;source
  $tweet-&gt;screen_name
  $tweet-&gt;name
  $tweet-&gt;avatar
  $user: represents the Twitter user (ONLY SET IF SHOWING A SINGLE USERS TWEETS!)
  $user-&gt;twitter_user_id
  $user-&gt;screen_name
  $user-&gt;name
  $user-&gt;num_friends
  $user-&gt;num_followers
  $user-&gt;num_tweets
  $user-&gt;registered
  $user-&gt;url
  $user-&gt;description
  $user-&gt;location
  $user-&gt;avatar       
  </code></pre>
  
  <p>So I was wrong about copying the main file (in this case hl_twitter.php), but still - this enabled me to edit the file outside the plugin directory and the system somehow checks for its existence and picks it up if exists.
  If this behavior something that is natively supported by Wordpress or it has been integrated in the plugin itself?</p>