Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/
./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent
add_filter('woocommerce_xero_line_item_account_code', 'wc_custom_xero_account_code', 10, 2); | |
function wc_custom_xero_account_code($account_code, $line_item) { | |
// $line_item->get_item_code() returns the SKU of the line item. | |
if( $line_item->get_item_code() == 'ACME') { | |
return '460'; | |
} | |
return $account_code; | |
} |
@echo off | |
rem ===================================================== | |
rem Converts a MP3 file to a M4R file using ffmpeg. | |
rem Usage: Drop a MP3 file at the top of this batch file. | |
rem ===================================================== | |
set ffmpeg_exe="C:\ffmpeg\ffmpeg-20150619-git-bb3703a-win64-static\bin\ffmpeg.exe" | |
rem %~f1 = Full File Path, with drive letter | |
rem %~p1 = Drive Letter | |
rem %~p1 = Path Only |
add_filter("mce_external_plugins", "tomjn_mce_external_plugins"); | |
function tomjn_mce_external_plugins($plugin_array){ | |
$plugin_array['typekit'] = get_template_directory_uri().'/typekit.tinymce.js'; | |
return $plugin_array; | |
} |
menuCommandString,UI MenuString zh_CN | |
------------------------------------- | |
new,新建 | |
newFromTemplate,从模板新建 | |
open,打开 | |
saveacopy,存储副本 | |
Adobe AI Save For Web,存储为 Web 所用格式(W) | |
Adobe AI Save Selected Slices,存储选中的切片 | |
revert,恢复 | |
AI Place,置入(L) |