Shineyrock web design & consultancy

Shineyrock

Gezocht op: "using" / 1124 gevonden

Creating Maintainable WordPress Meta Boxes: Save and Retrieve

…using trim and esc_textarea.At this point, we're ready to write it to the database so let's replace the line that reads // More to come... with the following code (note that we'll take a more in-depth look at the code after the block):<?php // If the 'Drafts' textarea has been populated,…


Multi-Instance Node.js App in PaaS Using Redis Pub/Sub

…using Heroku there is an add-on (although your account must have a credit card assigned to it). There is also Redis Cloud, which includes more storage and backups.From there, the Heroku setup is pretty easy: Select the add-on on the Heroku Add‑ons page, and select Redis Cloud or Redis To Go, or use one of…


Introduction to Tablesorter

…using Ajax in your application.This tutorial will showcase actual code and three examples of using Tablesorter. You can download the code at GitHub. Note that the Tablesorter download is actually missing a few graphic images for its pagers, so you may want to use my GitHub files.Example 1: Basic TablesorterMy first example shows…


Introduction to Generators & Koa.js: Part 2

…using Koa.js, and you'll learn about routing, compressing, logging, rate-limiting, and error handling in Koa.js. We will also use Mongo as our datastore and learn briefly about importing data into Mongo and the ease that comes with querying in Koa. Finally, we'll look into debugging Koa apps.Understanding KoaKoa has radical changes built under…


Building With the Twitter API: Getting Started

…using the REST APIposting tweetsPart three will cover use of the real time Twitter Streaming API and the open source Phirehose streaming implementation. While part two processes tweets using the REST API, part three will describe how to build an always-on connection with the Twitter data stream. This may be a new…


The Beginners Guide to WooCommerce: Product Tags, Categories & Attributes

…using Name to sort values like size such as 9, 5, and 10 will give you 10, 5, and 9 instead of 5, 9, and 10. Once you are done filling in all these fields, click the Add Attribute button. Adding Terms in an Attribute Once a product attribute is…


Building With the Twitter API: OAuth, Reading and Posting

…using the Twitter API. If you missed part one, you can read it here.Authenticating With Twitter via OAuthBirdcage uses a Yii extension called Yii Twitter by Will Wharton, which makes use of the open-source PHP OAuth Twitter library by Abraham Williams.I place the extension in the Yii tree under /app/protected/extensions/yiitwitteroauth. In Yii, you configure extension properties…


50 Filters of WordPress: Filters 11-20

…using the __FILE__ constant to hook our function to the filter with your plugin's name. Neat, huh? Use this with caution: If you abuse that area to fill there with links, people will remember you as a spammer. Filtering the Content Inside the Post Editor Ever wanted to pre-fill the…


Creating Maintainable WordPress Meta Boxes: Refactoring

…using earlier in the function to read like this:<?php public function save_post( $post_id ) { if ( ! $this->user_can_save( $post_id, 'authors_commentary_nonce', 'authors_commentary_save' ) ) { return; } if ( $this->value_exists( 'authors-commentary-drafts' ) ) { $this->update_post_meta( $post_id, 'authors-commentary-drafts', $this->sanitize_data( 'authors-commentary-drafts' ) ); } else { $this->delete_post_meta( $post_id, 'authors-commentary-drafts' ); } if…


50 Filters of WordPress: 31-40

…using the code below: <?php add_filter( 'use_default_gallery_style', '__return_false' ); ?> Done! Now WordPress won't add a <style> tag with a bunch of CSS rules before your [gallery] shortcodes. Filtering the Attachment URLs This filter applies to the attachment URL retreived by the function with the same name, wp_get_attachment_url(). Example: Avoiding…


Verfijn zoekopdracht

Bewaar deze zoekopdracht

Bewaarde zoekopdrachten

Je hebt nog geen bewaarde zoekopdrachten.