/** * This file represents an example of the code that themes would use to register * the required plugins. * * It is expected that theme authors would copy and paste this code into their * functions.php file, and amend to suit. * * @package TGM-Plugin-Activation * @subpackage Example * @version 2.3.6 * @author Thomas Griffin * @author Gary Jones * @copyright Copyright (c) 2012, Thomas Griffin * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link https://github.com/thomasgriffin/TGM-Plugin-Activation */ /** * Include the TGM_Plugin_Activation class. */ require_once dirname( __FILE__ ) . '/class-tgm-plugin-activation.php'; add_action( 'tgmpa_register', 'my_theme_register_required_plugins' ); /** * Register the required plugins for this theme. * * In this example, we register two plugins - one included with the TGMPA library * and one from the .org repo. * * The variable passed to tgmpa_register_plugins() should be an array of plugin * arrays. * * This function is hooked into tgmpa_init, which is fired within the * TGM_Plugin_Activation class constructor. */ function my_theme_register_required_plugins() { /** * Array of plugin arrays. Required keys are name and slug. * If the source is NOT from the .org repo, then source is also required. */ $plugins = array( // This is an example of how to include a plugin pre-packaged with a theme array( 'name' => 'Contact Form 7', // The plugin name 'slug' => 'contact-form-7', // The plugin slug (typically the folder name) 'source' => get_stylesheet_directory() . '/includes/plugins/contact-form-7.zip', // The plugin source 'required' => true, // If false, the plugin is only 'recommended' instead of required 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins 'external_url' => '', // If set, overrides default API URL and points to an external URL ), array( 'name' => 'Cherry Plugin', // The plugin name. 'slug' => 'cherry-plugin', // The plugin slug (typically the folder name). 'source' => PARENT_DIR . '/includes/plugins/cherry-plugin.zip', // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '1.1', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented. 'force_activation' => true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. ) ); /** * Array of configuration settings. Amend each line as needed. * If you want the default strings to be available under your own theme domain, * leave the strings uncommented. * Some of the strings are added into a sprintf, so see the comments at the * end of each line for what each argument will be. */ $config = array( 'domain' => CURRENT_THEME, // Text domain - likely want to be the same as your theme. 'default_path' => '', // Default absolute path to pre-packaged plugins 'parent_menu_slug' => 'themes.php', // Default parent menu slug 'parent_url_slug' => 'themes.php', // Default parent URL slug 'menu' => 'install-required-plugins', // Menu slug 'has_notices' => true, // Show admin notices or not 'is_automatic' => true, // Automatically activate plugins after installation or not 'message' => '', // Message to output right before the plugins table 'strings' => array( 'page_title' => theme_locals("page_title"), 'menu_title' => theme_locals("menu_title"), 'installing' => theme_locals("installing"), // %1$s = plugin name 'oops' => theme_locals("oops_2"), 'notice_can_install_required' => _n_noop( theme_locals("notice_can_install_required"), theme_locals("notice_can_install_required_2") ), // %1$s = plugin name(s) 'notice_can_install_recommended' => _n_noop( theme_locals("notice_can_install_recommended"), theme_locals("notice_can_install_recommended_2") ), // %1$s = plugin name(s) 'notice_cannot_install' => _n_noop( theme_locals("notice_cannot_install"), theme_locals("notice_cannot_install_2") ), // %1$s = plugin name(s) 'notice_can_activate_required' => _n_noop( theme_locals("notice_can_activate_required"), theme_locals("notice_can_activate_required_2") ), // %1$s = plugin name(s) 'notice_can_activate_recommended' => _n_noop( theme_locals("notice_can_activate_recommended"), theme_locals("notice_can_activate_recommended_2") ), // %1$s = plugin name(s) 'notice_cannot_activate' => _n_noop( theme_locals("notice_cannot_activate"), theme_locals("notice_cannot_activate_2") ), // %1$s = plugin name(s) 'notice_ask_to_update' => _n_noop( theme_locals("notice_ask_to_update"), theme_locals("notice_ask_to_update_2") ), // %1$s = plugin name(s) 'notice_cannot_update' => _n_noop( theme_locals("notice_cannot_update"), theme_locals("notice_cannot_update_2") ), // %1$s = plugin name(s) 'install_link' => _n_noop( theme_locals("install_link"), theme_locals("install_link_2") ), 'activate_link' => _n_noop( theme_locals("activate_link"), theme_locals("activate_link_2") ), 'return' => theme_locals("return"), 'plugin_activated' => theme_locals("plugin_activated"), 'complete' => theme_locals("complete"), // %1$s = dashboard link 'nag_type' => theme_locals("updated") // Determines admin notice type - can only be 'updated' or 'error' ) ); tgmpa( $plugins, $config ); } Learning more about TANSTIC items

Learning more about TANSTIC items

If you've ever before invested hrs digging with a toolbox or even looking for the best fastening in the middle of a project, you understand how much smoother traits go when the right products are actually within reach. TANSTIC products does not make an effort to blow away with flashy language or even methods - the products do what they're expected to perform, as well as they do it properly. Their schedule covers a lot of ground, as well as it is actually worth getting acquainted with the various teams so you can easily find what matches your very own work type.

Dependable Hardware for Everyday Jobs

TANSTIC's fasteners as well as dealings with are actually constructed for individuals that respect the details. There's no overpromising - the products are strong, operational, as well as reputable. From screws as well as nuts to washing machines as well as hooks, this hardware is actually created those who desire a smooth construct without having to second-guess the quality of their materials.

Whether you're working with lumber, drywall, or even concrete, there is actually something in the TANSTIC magazine that will certainly work for you. Their button screws, drywall supports, and also expansion screws are actually made to delay in scenarios where a weak possibility might neglect. This isn't concerning finding the least expensive piece of metal - it is actually concerning acquiring one thing that secures.

Resources That Get the Job Done

Resources issue. Any individual who's utilized a weaker set of pliers or a screwdriver that slips up recognizes the variation a well-made resource can easily produce. TANSTIC provides tools that experience straight in the palm as well as hold up to frequent use. Their slip joint pliers come in a set of three sizes - 6", 8", and also 10" - and also are actually created coming from carbon steel. They're not showy, however they're tough, and they function.

The staple and also nail puller set is actually another strong choice. It includes a mix of V-tip as well as U-type pushpin pullers alongside pliers and a staple remover - every little thing you require for cushioning or even repair work. You will not find bonus you do not require, simply the essentials that in fact get the job done.

Small Parts with Big Purpose

Partnering with fabric, natural leather, or even light commercial products? TANSTIC additionally deals with the much smaller edge of hardware - snaps, rivets, switches, as well as closings. These could feel like minor details, yet anybody that's done trade work understands just how essential they may be. Their 18mm magnetic switches are simple to connect and powerful enough to always keep bags, pocketbooks, or even garments shut without trouble.

There's likewise a 540-piece U staple nail variety that comes sorted in an instance. Say goodbye to poking via a combined carton - each size is actually held individually, creating the entire process more dependable.

Hardware for Creative Work

TANSTIC pitches into the simple fact that certainly not every venture is about construction. For crafters, producers, as well as small company managers, there's a large collection of materials created along with innovation in thoughts. The 1251-piece jewelry-making kit is a standout. It includes every thing needed to have for setting up earrings, trinkets, or even chokers - particularly useful if you're restocking or just entering precious jewelry job.

Then there is actually the 20-color shoelace bow set as well as the beaded silver chain package. These aren't simply for decor - they're resources for forming type. The lace rolls provide adequate wide array to enjoy with shade combinations, and also the silver establishments have only the correct amount of luster for gift-making or marketing.

Practical Packaging Supplies

Packing isn't pretty much just how something appears - it's also about defense and comfort. TANSTIC uses some well thought-out options here, also. The yellow-brown glass containers are strong and block UV radiations, so they're a terrific selection for anything light-sensitive, like important oils or even hand-blended natural skin care.

Beyond of things, you've got the PVC diminish wrap bags. They're simple yet practical, safeguarding against dust as well as dust, especially for little items or gifts. If you've ever before packed handcrafted cleansing soap, jewelry, or maybe books, you'll find the market value in having these prepared to go.

The earring memory card package and also the naval force present boxes pivot it out. These could look like completing styles, but they're useful when you need to present or ship products cleanly. The present boxes feature cotton inserts, and also they're firm enough to guard what's within without overcomplicating the packaging.

Kits That Actually Make Sense

Often packages are actually puffed up with points you won't utilize. That's certainly not the instance listed here. TANSTIC's packages seem like they were actually developed through someone who's actually performed the work - no filler, merely the devices or items you're likely to need. If you're trying to prevent rubbish as well as improve your supply store, these cost looking into.

Their mass possibilities are additionally an additionally. If you're servicing a number of ventures, filling an outlet, or similar to possessing data backups on hand, it's effortless to get what you need to have in bigger amounts without leaping by means of hoops.

Last Thoughts

In the end of the time, the worth of any type of line of product boils down to how it fits into your job, whether that's daily construction, weekend crafting, or putting together your very own local business. TANSTIC does not overcomplicate things. The items are straightforward, well-constructed, and also precisely developed along with a working user in mind.

It's certainly not concerning bright advertising and marketing or even pushing the latest fad. It is actually just about obtaining your hands on tools and also components that actually assist. As well as sometimes, that's all you truly need.