-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
<?php | |
function sendWithPhpMailer($subject, $body, $reply) { | |
require(ABSPATH . WPINC . '/class-phpmailer.php'); | |
require(ABSPATH . WPINC . '/class-smtp.php'); | |
// date_default_timezone_set( 'America/Sao_Paulo' ); | |
$blogname = wp_strip_all_tags( trim( get_option( 'blogname' ) ) ); | |
$smtpHost = wp_strip_all_tags( trim( get_option( 'smtp_host' ) ) ); |
<?php | |
/** | |
* Shop/archives: wrap the product image/thumbnail in a div. | |
* | |
* The product image itself is hooked in at priority 10 using woocommerce_template_loop_product_thumbnail(), | |
* so priority 9 and 11 are used to open and close the div. | |
*/ | |
add_action( 'woocommerce_before_shop_loop_item_title', function(){ | |
echo '<div class="imagewrapper">'; |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form>
following the example by Martin Hawksey
Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.
You should be able to just open index.html
in your browser and test locally.
<?php | |
// In your functions.php | |
/** | |
* Add custom field | |
*/ | |
function mytheme_attachment_fields( $fields, $post ) { | |
$meta = get_post_meta($post->ID, 'meta_link', true); | |
$fields['meta_link'] = array( |
<?php | |
class MyCompany_Catalog_Block_Product_List extends Mage_Catalog_Block_Product_List{ | |
/*override this function*/ | |
protected function _getProductCollection(){ | |
/*Add below line to add existing line of code to display stock in descending order*/ | |
$this->_productCollection = $layer->getProductCollection()->addAttributeToSort('created_at','DESC'); | |
} | |
?> |
<?php | |
// Parsing this spreadsheet: https://spreadsheets.google.com/pub?key=0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc&hl=en&output=html | |
$url = 'http://spreadsheets.google.com/feeds/list/0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc/od6/public/values?alt=json'; | |
$file= file_get_contents($url); | |
$json = json_decode($file); | |
$rows = $json->{'feed'}->{'entry'}; | |
foreach($rows as $row) { | |
echo '<p>'; |