WordPress Plugin Framework | theantichris.com View the repository on GitHub or download the source. This is an OOP framework for developing WordPress plugins. The main class uses the Singleton pattern to make sure that only one instance of the plugin is ever created. I have included blank methods for activation, deactivation, and registering scripts and styles. The base class sets up the text domain for internationalization and localization. Just drop your i18n and l10n files into the lang directory. I have included a blank uninstall file that is setup to make sure it can only be called from the WordPress dashboard. All custom plugin functionality should be started in the run_plugin() method. Instantiating Objects When instantiating an object such as Custom_Post_Type or Taxonomy save it to the proper array property on the main class. $this->custom_post_types[ 'new_custom_post_type' ] = Custom_Post_Type( $plural_post_type_name, $capabilities, $support, $menu_icon ) Custom Post Types Taxonomies Terms $new_taxonomy->add_terms( $terms ); Pages View
WP-Quick-Pages WordPress plugin that lets you quickly create blank pages with hierarchies. Useful if you use WordPress as a CMS for simple sites that make use of pages. This plugin will add a submenu item called "WP Quick Pages" underneath "Pages" section of your admin area. On this age you can quickly enter pages, one per line, like this: About the Plugin FAQ Links Examples Contact When you're finished click the Create these pages button. The cool part is you can quickly show hierarchies as well: About the Plugin - Donate - Open Source -- Github -- Help Develop FAQ Links Examples - Example one -Example two Contact The example is probably pretty obvious, but the parent of the page is dictated by the number of hyphens in front of the title. If you find yourself working on sites where the structure gets decided upon before the content is necessarily ready (ahem) then you may find this useful.
40 Tiny Web-Based Apps & Tools for Web Designers In this post we have collected a varied assortment of tiny web-based apps and tools that have been built with the purpose of solving a specific solution and act as precious time-savers for web designers. They are those tools that may not be very well known, are not the most powerful of apps, but are really useful and do serve their purpose extremely well. You will find apps that will help you to create icon-fonts, calculators for working out an elements width in % from PXs, apps that will allow you to create beautiful typography, tools for validating and sorting your CSS, super-simple editors, resources for quick reference, sprite generators, PSD validators, Base64 converters… and much, much more. Get ready to start bookmarking… Daturi – An app for converting images to Base64. px-em – A PX to EM calculator. PSD Validator – Tool to find out how well your PSD files are structured. Create CSS3 – A super-simple CSS3 generator. SassMe – An app for visualizing SASS color functions. SVGeneration.
Command line interface for WordPress | WP-CLI 10 Useful WordPress Loop Hacks The loop is a very important aspect of WordPress blogs. In fact, the loop is what allows you to get posts from your WordPress database and print them on the screen. A set of useful and user-friendly functions, the loop is incredibly powerful. With it, you can get a single post, a list of posts ordered by date, title or category, a list of posts written by a specific author and much more. In this article, we’ll show you 10 useful things you can do with the WordPress loop to make your blog even more powerful than it is right now. You may be interested in the following related posts: 1. Image source: Shutterstock The problem. The solution. <? Code explanation. As a result, the “WHERE” clause contained in the filter_where() function is added to the end of the SQL query contained in the post_where() function, which means that the loop will return posts published only between the two dates specified in the filter_where() function. Source 2. The problem. The solution. Code explanation. 3. <? 4. 5. <?
Outils 78 ressources en ligne Haut de page Visual Studio Code Visual Studio Code est un éditeur de code source récemment lancé par Microsoft,… Schnaps.it, le générateur de template HTML5 Alsacréations est fier de vous annoncer la naissance de Schnaps.it, notre nouvel… Rendu par défaut des éléments HTML Outil conçu par Julien Royer, permettant d'observer les différences de rendu par… MobileHTML5 MobileHTML est un tableau de compatibilité récapitulatif à destination des plate-formes… ReformedApp Chronophage, redondant et fastidieux... Coder vos formulaires à la main vous… Initializr Initializr vous permet de générer un template HTML5 basé sur HTML5 Boilerplate.… HTML5Please HTML5Please est un récapitulatif clair et bien organisé listant les différentes… HTML5 Boilerplate HTML5 Boilerplate est un gabarit HTML5 et CSS3 contenant toutes les bonnes pratiques… HTML5Rocks Diaporama des nouveautés HTML5, tutoriels pas à pas, et exemples en ligne. Haut de page Accessibilité Haut de page Développement Web
WordPress Serialized PHP Search Replace Tool | Interconnect IT - WordPress Consultants, Web Development and Web Design Search Replace DB version 3.0.0 (currently a BETA version) allows you to carry out database wide search/replace actions that don’t damage PHP serialized strings or objects with a user friendly interface and experience. Installation & Use Now acts like a web app! To use the script, download the zip file from below, extract the folder called secret-name-please, renaming it to something secret of your choosing, then navigate to that folder in your browser. To see how you can use this tool to aid migrations, check out our article on WordPress migrations or visit the WP Tuts+ article that mentions this script. If you are in any doubt whatsoever about how to use this standalone script, then please consider getting an expert in. IMPORTANT: This code is supplied with no warranty or support implied. Download v 3.0.0 BETA Problems? Changelog: To Be Done Ensure UTF8 encoding is enforced (see comments). Contributions Donations We’ve been asked a lot in the comments box below about accepting donations.
How To Make Twenty Fourteen (Or Any Other WP Theme!) Super In a recent review of WordPress’ latest default theme, WPMU DEV’s Chris Knowles called Twenty Fourteen a “flawed beauty.” In that article, Chris recommended a number of potential improvements, and together we’ve put together this ultimate guide to addressing those flaws. And what’s more, these tips and techniques can be used in practically any WordPress theme. So, break out the cape, fire up your favorite editor, and give Twenty Fourteen a superhero makeover. Featured Plugin - WordPress Facebook Plugin Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Find out more In this article, we are going to build a child theme that implements the improvements that Chris recommended in his review of Twenty Fourteen, namely: And to make your life even easier we’ve given you two paths to glory: 1. Still here? Before We Begin : Create a Child Theme As we know, if we want to customize a theme, then it’s essential to use a child theme. 1. What’s The Problem?