Wednesday, April 27, 2016

Demystifying the WordPress Hook System

If you've been developing websites with WordPress (including plugin and theme development) chances are you’ve heard these terms: Hooks, Actions, and Filters. WordPress uses the Event-driven Architecture Pattern.

Are you new to WordPress development or finding it difficult to understand the basic concepts? I can’t recommend highly enough Simon Codrington’s Introduction to WordPress Plugin Development tutorial. He did a great job of explaining Actions, and Filters.

In this tutorial, I will be demystifying the WordPress hook system, leaving no stone unturned. Without further ado, let’s get started.

Hooks, Actions, Filters. What Are They?

'Hooks' are basically events triggered by WordPress core, themes and plugins at various stages of their execution or interpretation by PHP. When these events are triggered, all the functions and/or class methods hooked or attached to them are executed in their correct order.

Hooks come in two forms, Actions and Filters. While the former is used to add and remove features or functionalities at various stages of execution process, the latter modifies the behavior of various features and implementations. Don’t worry if you still don’t understand. You will when we start seeing some code examples below.

Importance of the Hook System in WordPress

The importance of the hook system in WordPress is simply extensibility. It makes it possible to add and remove features, as well as tweak/modify the implementation of features in WordPress core, plugins and themes.

When you write extensible plugins and themes, you make it possible for other developers to improve and extend them without ever editing the core source code.

Continue reading %Demystifying the WordPress Hook System%


by Agbonghama Collins via SitePoint

This Week's HTML5 and Browser Technology News (Issue 237)


Read this e-mail on the Web
HTML 5 Weekly
Issue 237 — April 27, 2016
Louis Lazaris
What are the bare elements you need and how can they come together? Originally published in 2013 but updated for 2016.


Mathias Bynens
A focus on security-sensitive situations in which performance can actually be a bug rather than a feature.


Stefan Lederer
The future of video on the web looks bright. In the future, we won’t need multiple formats, nor (obviously) Flash. HTML5 MPEG-DASH streaming is coming.


Linode  Sponsored
Linode's SSD hosts are the perfect environment for any HTML5, CSS, and JavaScript media. Meet your website's demands with a lightening-quick cloud host offered at competitive pricing. 99.9% uptime and 24/7 support.

Linode

Pavels Jelisejevs
Pavels explores how PostCSS (the CSS post-processor) can help improve and maintain your CSS quality with code linting and analysis.


Geoff Phillips
HTML support in email clients continues to improve (very slowly) meaning you can now produce simple ‘carousels’ with fallback options, given enough code and patience.


Karolina Szczur
A look at up-to-date front-end tooling as well as alternative approaches to compiling, building and automation that emphasize the human side of teamwork.


Jobs

  • Job Offers. No resume necessary.Create your Hired profile to get top companies to start applying to hire you. Get offers from $75,000 - $250,000 on the platform in 1 week. Hired.com

In brief

Curated by Peter Cooper and published by Cooper Press.
Want to post a job? E-mail us or use our self-serve system.

Unsubscribe : Change email address : Read this issue on the Web

Published by Cooper Press Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK


by via HTML5 Weekly

New Coffee Break Course: Create Web Components With X-Tag

A Bear’s-Eye View of Yellowstone

opl-small

Incredible long scrolling One Pager that takes us on a journey with 4 bears as they navigate the heart of Yellowstone, as seen from the bears’ own point of view. Yes, there is a footer site navigation that we don't normally allow (as this makes the website technically multiple-page). But what an excellent reference to a Long-form Journalism website - a big trend in digital publications that we're seeing much more of. Make sure you read the case-study by Hello Monday that dives deep in the build. Stellar work by them.

by Rob Hope via One Page Love

This Week in Mobile Web Development (#105)

Read this on the Web

Mobile Web Weekly April 27, 2016   #105
Chris Brandrick recommends
The Web is DOOM — The average Web page weight now equals that of the original DOOM game install from the 90s.
Ronan Cremin
Brian Rinaldi recommends
Chrome Reaches 1 Billion Monthly Mobile Users with 50th Release
Kellen Beck
Holly Schinsky recommends
Solve Layout Problems: Guide to Flexbox — Wes Bos explains the fundamental concepts behind Flexbox and how to easily use it for creating responsive layouts.
Creative Bloq
Brian Rinaldi recommends
Wait! The Web Isn't Dead After All. Google Made Sure of It — The app universe and the web are not mutually exclusive. We use the both. Just maybe, the web is more alive than ever.
Cade Metz
Sponsored by Hired.com
Work on a Better Stack — On Hired, engineers typically get 5+ job offers in 1 week. Find that new opportunity you've been craving and get access to 3,500+ companies instantly.
Hired.com

Peter Cooper recommends
Publishers Find Google's AMP Speeds Up Pages, But Ads Are Still Slow — The mobile web is getting faster thanks to Google’s AMP program, but the ads are still slow to load.
Digiday
Holly Schinsky recommends
All You Need to Know About Web Rendering — An explanation of the web rendering process including practical advice to help you optimize your own apps.
Ilya Pestov
Chris Brandrick recommends
The Tilde CSS Selector, Use Carefully — Tips on how to avoid misusing the tilde selector.
Martin Falkus
Chris Brandrick recommends
Hover On Touch: JavaScript Plugin for An Alternative Hover Function on Mobile Devices — A pure Javascript Plugin for an alternative hover function on mobile devices. It shows secondary information on Taphold and goes to a link on Tap.
Vinzenz Aubry
Peter Cooper recommends
Angular 2 + React Native: The Best of Both Worlds? — Angular and React? Here’s a look at work being done to render Angular 2 apps with React Native to make cross-platform native app development easier.
Angular Team
Brian Rinaldi recommends
Designing an Alternative to the Hamburger Menu
Scott Jensen Design
Holly Schinsky recommends
Introducing: Star Track by PhoneGap — Star Track is a new app based on the Spotify API and Framework7 with a goal of helping users get started building their first hybrid app quickly.
PhoneGap Blog
Brian Rinaldi recommends
Use The Device Camera In An Ionic 2 Android And iOS App — Learn how to take pictures using the Android and iOS camera in an Ionic 2 TypeScript cross platform application.
Nic Raboy
Holly Schinsky recommends
Integrating Ionic 2 with the Dropbox API – Part 2 — In part 2 Josh shows how to implement authentication by adding a login screen to trigger the Dropbox OAuth 2 flow and retrieve a user’s access token.
Josh Morony
Brian Rinaldi recommends
Mobile Ad Blocking Is Real, But New Data Suggests It Might Not Matter — While mobile ad blocking apps initially caused a dip in number of ads, it’s since rebounded, according to a new report.
Patrick Kulp
Chris Brandrick recommends
The Importance of Bottom Navigation — How research on mobile device use can improve mobile UX design.
Joe Hewitson
Holly Schinsky recommends
On Paid App Store Search Results
Marco Arment
Holly Schinsky recommends
The Complete Ionic Push Notifications Guide — A new version of this guide is now available to help you implement push notifications with the latest version of Ionic and the PhoneGap Push Plugin.
Devdactic
Holly Schinsky recommends
PhoneGap Build now supports Windows 10 and PhoneGap CLI 6.1.0 — PhoneGap Build now supports Windows 10 and Windows 8.1 for building apps (previously only Win Phone 8.1 was supported).
PhoneGap Build
Brian Rinaldi recommends
Adblocking is Helping The Digital Sharks Eat The Minnows - What's The Solution? — Ad blocking software companies are allowing big name advertisers to buy their way out of being blocked, all while the revenue of some small sites has been cut in half or worse.
Andrew Brown
Holly Schinsky recommends
Announcing the Release of Ionic 2 Beta 6 — Ionic 2 Beta 6 includes new features like Virtual Scroll, a Loading component, Theming, Hardware Back Button handling and more.
The Official Ionic Blog
Sponsored by GONATIVE.IO
Convert existing websites to native Android & iOS apps, no changes required — Check our examples, or try it out for free!
GONATIVE.IO

Curated by Brian Rinaldi and Holly Schinsky for Cooper Press.
Cooper Press is located at Office 30, Fairfield Enterprise Centre, Louth, LN11 0LS, UK
Update your email address
or stop receiving MWW here


by via Mobile Web Weekly

How to Work With Excel Documents Using Python

How to Use the Pinterest Bulk Editor to Create Promoted Pins

ag-pinterest-bulk-editor-560

Looking for a faster way to create promoted pins on Pinterest? Have you tried the Pinterest bulk editor tool? Pinterest’s bulk editor tool makes it easier to create and edit promoted pins and optimize multiple promoted pins at one time. In this article you’ll discover how to create promoted pins in less time with Pinterest’s [...]

This post How to Use the Pinterest Bulk Editor to Create Promoted Pins first appeared on .
- Your Guide to the Social Media Jungle


by Ana Gotter via