WordPress Essentials: The Definitive Guide To WordPress Hooks
Leveraging Chrome Developer Tools for WordPress Development
One of the most common questions I see in forums, and when talking to people one-on-one is “how do you know?” How do you know what style rules a specific element has? How do you know exactly what classes are applied to it? My answer is Chrome Developer Tools! In this article we take a look at Chrome’s Developer Tools, but the general idea can be applied to all large browsers. If you have Chrome open, go to View > Developer > Developer Tools or press Command + Shift + C on your Mac or Control + Shift + C on Windows to bring up the developer tools. Inspecting Elements The foundation of any HTML/CSS information is the Elements section and the Element Inspector. By default the inspector will be turned on. The inspector allows you to hover over an element on the page and click to select it. You can also click around within the left-hand side of the inspector to view specific elements, or use the arrow keys to move around. One trick I like is that you can copy/edit/delete nodes. Working With CSS
Using tar to archive
The program tar (originally for tape archive) is useful for archiving and transmitting files. For example, you may want to 'tar up' all your work for a course on the acpub and save it to your own computer's disk drive so you don't run into quota problems. You might also want to submit (e.g., for cps 108 or cps 100) an entire directory at once rather than the individual files in the directory. The tar program is useful for these and other tasks and is simple to use. You can see more information by reading the man page, type man tar The examples below are not meant to be exhaustive. Note: on the acpub system you probably want to use /afs/acpub/projct/cps/bin/tar since it understands the z option. Create, Extract, See Contents The tar program takes one of three funcion command line arguments (there are two others I won't talk about). Exactly one function argument, c, t, x, is used in conjunction with other command line arguments shown below. Compression, Verbose, File specified Examples
Web Ninja Google Analytics Wordpress Plugin | The Web Ninja
The Web Ninja Google Analytics Plugin is the one stop shop for all your Google Analytic needs. It not only allows you to add Google Analytics JavaScript to each page on your site without making any changes to your template, but it also adds an Admin Dashboard Widget with Analytic Stats. Plus, not only do you see the over all stats on the Admin Dashboard but you can see individual post and page stats in the Post and Pages Admin sections. This plugin is highly configurable. With it you can add tracking to outbound links, download, and mailto links as well as see your stats from the past 7 days, 30 days, 60 days, and even 90 days. Read through the list of all the features below to get a feeling of what this plugin can do. Features * Using new faster async Google Analytics tracking script. * Supports tracking for single domain, multiple top-level domains, and subdomains. * When adding the JavaScript tracker code to a page, put it at the end of the body. Screenshots Plugin Options Page Download
Using The WordPress Debug Log
Do you ever make mistakes? I do. The first step to fixing your mistakes is knowing what the mistake is. I can’t solve all of your problems, but I can help fix those that are generated by PHP code on your WordPress site by helping you work with debug logs. A few weeks ago, when I wrote about customizing your WordPress site’s wp-config.php file, I covered settings for debugging. For these reasons, on a live site, its a good idea to leave WP_DEBUG enabled, but to prevent errors from being displayed. Logging errors, even when you’re displaying them is still useful as having a record of your errors is often very useful in development. Setting Up This is a brief review of what I discussed in my wp-config article. In order to enable debugging, prevent errors and warnings from being displayed and log errors, you need these three lines in your wp-config: Viewing Your Debug Log The actual debug log is saved in a file called debug.log in your site’s content directory. All Kids Love Log By Josh Pollock
OS X commands
Commands marked • are bash built-in commands. bash is the default shell, it runs under Darwin the open source core of OS X. OS X Man Pages - Apple Developer ConnectionDiscussion forum Links to other Sites, Books etc... “Mac OS X is a rock-solid system that's beautifully designed. I much prefer it to Linux” - Bill Joy
Learn WordPress.com
Log Viewer — WordPress Plugins
** The plugin is recommended to use only in development. ** This plugin provides an easy way to view any *.log files directly in admin panel. Also you can perform simple actions like empty the file or deleting it. To activate WordPress logging to file you have to set define( 'WP_DEBUG_LOG', true ); in your wp-config.php file. There is an first integration for a panel to the Debug Bar Plugin. If you're experiencing problems please report through support forum or check FAQ section. Known limitations / Bugs: Autorefresh is currently fixed at 15 seconds if enabled - will let you choose custom timing soonafter an action in files view a wp_redirect should be called but there's already output present so not working. ToDo: Adding Dashboard functionality ( and/or File View in Dashboard menu (WP_NETWORK_ADMIN) )Translations ( DE )Cleanup on uninstallingMessage if WP_DEBUG not set ( on activation?