w-ecommerce action,filter, template document - wordpress
Action Reference Posted in Developer Documentation Introduction Actions are triggered by specific events that take place in WordPress, such as publishing a post, changing themes, or displaying a page of the admin panel. Your plugin can respond to the event by executing a PHP function, which might do one or more of the following: Modify database data Send an email message Modify what is displayed in the browser screen (admin or end-user) The basic steps to making this happen (described in more detail below) are:......
w-ecommerce template files and Template Hierarchy
Template Files and Locations In Wp e-Commerce 3.8 we have removed the 3 wp-e-commerce themes we used to support (iShop, MarketPlace, and Default) and replaced them with one default theme located in wp-e-commerce/wpsc-theme/. This does not mean that your old themes will not be used when you upgrade, however support for older themes are limited as some new functionality may rely on the new templates. 3.8 WP e-Commerce searches in 3 different places for templates. In order these are: Selected WordPress Theme Directory: wp-content/themes/selectedTheme Old Uploads Dire......
wordpress e-commerce plugin theme files
wpsc_register_core_theme_files Posted in API Action Reference Located in: theme.functions.php Functions that call this hook: wpsc_register_core_theme_files() Arguments Accepted: none Version Introduced: 3.8 Description: This hook can be used by other plugins to register their theme files. Code in context: [php firstline="41" highlight="59"] /** * wpsc_register_core_theme_files() * * Registers the core WPEC files into the global array */ function wpsc_register_core_theme_files() { wpsc_register_theme_file( ‘wpsc-single_product.php......
WordPress插件开发
基本概念 插件机制是由Hook系统实现。使用Hook,插件开发者可以在文档(HTML)被浏览器渲染之前对其进行修改,或者可以在某个事件发生时做一些事情。 大多数WordPress插件API都是由以下两大基本元素构成: • Actions • Filters Actions: 事件驱动,特定事件发生时,比如:保存一篇Post,加载一个Admin Page或者向浏览器发送HTML;插件有能力Hook到这些事件中同时创建它们自己的事件。举个例子,一个插件可以在Post被保存的时候去Ping一 台服务器,又或者一个插件可以在用户信息更新的时候自动更新该用户在社交网络上的信息......
get sub menu posts object by post id
/** * get sub menu posts object by post id * @param unknown_type $postId * @return multitype:NULL */ function getSubPostIdsByPostId($postId) { $childPostIds = array(); $subMenuIds = getSubMenus($postId); if (!empty($subMenuIds)) { foreach ($subMenuIds as $subId) { $childPostIds[] = getPostIdByMenuId($subId); } } return $childPo......
- 1
- Page:1/1 8 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(751)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)