/** * 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 ); } Understanding TANSTIC products

Understanding TANSTIC products

If you've ever before invested hrs excavating via a toolbox or searching for the right fastening in the middle of a project, you know how much smoother things go when the right products are within reach. TANSTIC does not make an effort to wow along with flashy foreign language or methods - the items do what they're intended to carry out, and also they do it properly. Their schedule deals with a considerable amount of ground, and it is actually worth obtaining acquainted with the different teams so you can discover what matches your personal work design.

Reliable Hardware for Everyday Jobs

TANSTIC's fastenings and also dealings with are actually constructed for people who respect the particulars. There is actually no overpromising - the products are sound, functional, and professional. Coming from screws and also almonds to washers and hooks, this equipment is made for those who really want a smooth create without must second-guess the high quality of their products.

Whether you're partnering with hardwood, drywall, or even concrete, there is actually something in the TANSTIC magazine that are going to work with you. Their button bolts, drywall supports, as well as development screws are made to hold up in circumstances where a weaker possibility could fall short. This isn't regarding finding the least expensive piece of metallic - it's regarding getting one thing that holds.

Tools That Get the Job Done

Resources concern. Anyone who's made use of a poor pair of pliers or a screwdriver that slips understands the variation a well-made resource can make. TANSTIC provides resources that believe right in the hand and stand up to regular use. Their slip joint pliers come in a set of three dimensions - 6", 8", and also 10" - and also are actually made coming from carbon dioxide steel. They're certainly not flashy, yet they're hard, and they function.

The staple and also nail puller collection is one more solid pick. It features a mix of V-tip and U-type pushpin pullers in addition to pliers as well as a staple remover - every thing you need for cushioning or even repair work tasks. You will not locate additions you don't need, just the essentials that actually get the job done.

Little Parts along with Big Purpose

Collaborating with cloth, leather, or perhaps lightweight commercial products? TANSTIC additionally deals with the much smaller side of components - breaks, rivets, buttons, and also closings. These could appear like minor details, however anyone that is actually performed trade job knows just how vital they could be. Their 18mm magnetic buttons are actually straightforward to fasten and also strong good enough to maintain bags, purses, or even garments finalized without headache.

There is actually also a 540-piece U staple nail array that comes sorted in an instance. Say goodbye to searching with a combined container - each size is actually stored individually, creating the whole process much more reliable.

Hardware for Creative Work

TANSTIC leans right into the reality that not every job is about building. For crafters, makers, and small business owners, there's a wide choice of materials constructed along with ingenuity in mind. The 1251-piece jewelry-making set is actually a standout. It includes every little thing needed to have for putting together earrings, bracelets, or pendants - especially beneficial if you're restocking or simply getting into precious jewelry work.

At that point there's the 20-color shoelace ribbon collection and the handmade silver chain kit. These aren't only for design - they're resources for forming style. The lace rolls give adequate selection to enjoy with color mixtures, as well as the silver chains possess simply the correct amount of shine for gift-making or even selling.

Practical Packaging Supplies

Product packaging isn't nearly exactly how one thing looks - it's likewise regarding defense and convenience. TANSTIC gives some well thought-out possibilities listed below, too. The brownish-yellow glass containers are actually durable and also block UV radiations, so they're a fantastic choice for just about anything light-sensitive, like important oils or even hand-blended skin care.

Beyond of things, you've obtained the PVC reduce cover bags. They're basic yet beneficial, protecting versus dust and dirt, specifically for tiny products or even presents. If you've ever before loaded hand-made cleansing soap, jewelry, or perhaps manuals, you'll view the market value in having these ready to go.

The earring memory card package as well as the naval force present containers round it out. These might look like ending up styles, however they're handy when you require to display or deliver products safely. The present cartons include cotton inserts, and also they're strong sufficient to guard what's inside without overcomplicating the packaging.

Sets That Actually Make Sense

In some cases kits are puffed up with points you won't utilize. That's not the instance listed below. TANSTIC's packages believe that they were developed through someone that's actually carried out the job - no filler, merely the devices or materials you're most likely to need to have. If you're making an effort to stay away from refuse and also simplify your supply pile, these are worth looking into.

Their majority alternatives are actually additionally an and also. If you're working with numerous projects, filling a store, or similar to possessing back-ups handy, it is actually easy to obtain what you need in bigger volumes without hopping by means of hoops.

Ultimate Thoughts

In the end of the day, the worth of any product line comes down to how it matches your work, whether that is actually everyday development, weekend crafting, or even setting up your own small company. TANSTIC doesn't overcomplicate factors. The items are straightforward, sound, and clearly designed with an operating consumer in mind.

It's not regarding shiny advertising or even pressing the most up to date trend. It is actually nearly getting your hands on resources and products that really help. And also often, that's all you really need.