Utility Plugin for ClassicPress

Download your own utility plugin for ClassicPress! This provides a safe place for your site-specific code snips and tweaks! Remember, it is no longer recommended to add code snips to functions.php. Using a plugin instead, you'll even be able to activate and deactivate your code snips just like any plugin.

Utility Plugin Downloads

What Next?

Each version of the plugin contains a single example filter that changes the dashboard footer text. At this point, you may want to see the FAQ to learn how to rename the plugin. No worries, it's a quick process. From there, you can start adding your code snips directly to the PHP file in your plugin. And, don't forget: you can activate and deactivate your the plugin right in your dashboard.

By now, you probably have the utility plugin downloaded and installed. Going forward, you can place all your code snips into the utility plugin, rather than your functions.php file. Consequently, this means you can safely update your theme without losing your custom code snips.

Further Reading

Want to learn more about why you should use a utility plugin? If so, check out the thought process behind creating a utility plugin – it's well worth a read, even for non-coders. Oh yeah, there's also an article on converting a code snip into a utility plugin, if you're interested in seeing the process in the other direction.

Frequently Asked Questions

  1. Why are there several versions of this plugin?
    The utility plugin has been created in 4 versions. The reason for this is because some people are more comfortable with procedural PHP, others are more comfortable with object-oriented PHP. Some people use namespaces, others are perplexed by namespaces. To give you a utility plugin that immediately fits your own preferred code style, the different versions were created.

  2. What are the differences between versions A, B, C, and D?
    Only the code style differs from version to version. Version A is written in prefixed procedural PHP. Version B is written in namespaced procedural PHP. Version C is written in object-oriented PHP. Version D is written in namespaced and object-oriented code.

  3. Which version of this plugin should I use?
    You can use whichever version you prefer. If you want to write code like Code Potent, choose version D.

  4. How can I change the plugin name?
    First, if you have the plugin enabled, disable it. Next, rename the plugin's main directory and the PHP file to match. For example, if you want a plugin called "ABC Utility", rename the directory to abc-utility and rename the PHP file to abc-utility.php. Finally, in the PHP file, change the header details to reflect your own plugin name, description, URL, etc.

  5. Does each version do the exact same thing?
    Yes. However, don't miss the not-so-obvious learning opportunity here! If you download all 4 versions and inspect the code side-by-side, it will provide a very enlightening (and easily-digestible) apples-to-apples comparison of how you can start thinking about more advanced programming techniques such as object-oriented programming and using namespaces.

  6. Does this plugin work with WordPress?
    It should. However, note that there are no features for Gutenberg and no WordPress-specific testing has been conducted. If you'd like to report your experience in using the plugin with WordPress, you can do so here.

  7. Why are there directories for scripts, styles, images, etc?
    The default directories inside the utility plugin are those that are most commonly needed in a utility plugin. Some utility plugins won't need any of these directories while other plugins might need them all. They were included to give you a well-known directory naming schema to start with, just in case you're super new to creating ClassicPress plugins. You can safely delete these directories if you don't foresee a need for them.

Screenshots

There are no screenshots for the Utility Plugin plugin at this time.

Changelog

  • 1.0.0 | 2019-07-28
    1. Initial releases of versions A, B, C, and D

License

The Utility Plugin plugin is released under the General Public License.

Installation Requirements

  1. ClassicPress 1.0.0 or later
  2. PHP 5.6 or later

Manual Installation

  1. Download the zip file to your local computer
  2. Login to your ClassicPress website.
  3. Navigate to Dashboard > Plugins > Add New > Upload Plugin
  4. Upload the plugin zip file to your site
  5. Click to Install the plugin
  6. Click to Activate the plugin
  7. See the documentation for next steps

Checksums

Checksums allow you to verify the integrity of the plugin file.

Coming soon!

Conflicts

There are no reported conflicts between the Utility Plugin plugin and other ClassicPress plugins or themes. If you experience any kind of problem or annoyance, please submit an issue if you have a GitHub account, or send an email!

Usage

There are no special usage instructions for the Utility Plugin plugin – it is designed to just work! However, be sure to check for extras such as widgets, shortcodes, filters, and actions to get the most out of the plugin.

Settings

There are no settings for the Utility Plugin plugin – it is designed to just work!

Widgets

There are no widgets associated with the Utility Plugin plugin. If you have an idea for a new widget, please send an email!

Shortcodes

There are no shortcodes associated with the Utility Plugin plugin. If you have an idea for a new shortcode, please send an email!

Filters

There are no filter hooks implemented in the Utility Plugin plugin at this time. If you have an idea for a new filter hook, please send an email!

Actions

There are no action hooks implemented in the Utility Plugin plugin at this time. If you have an idea for a new action hook, please send an email!

Styling

There are no styling options for the Utility Plugin plugin. If you think of a way to better style the plugin, please send an email!

Thank You

Your feedback has been received. Please allow some time for your feedback to appear with the Utility Plugin plugin. Thank you!

Thank You

Your feedback has been received. Please allow some time for your feedback to appear with the Utility Plugin plugin. Thank you!

Share Your Experience

Had a great experience with the Utility Plugin plugin for ClassicPress? Share your thoughts and get a link back to your site! Emails are not shared or published.

Related Plugins