wordpress分类下的博客

w-ecommerce action,filter, template document - wordpress

piaoling  2013-08-22 12:16:17

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:......

类别 :  wordpress(8)  |  浏览(72787)  |  评论(0)

w-ecommerce template files and Template Hierarchy

piaoling  2013-08-22 12:09:14

 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(8)  |  浏览(1244)  |  评论(0)

wordpress e-commerce plugin theme files

piaoling  2013-08-22 11:42:11

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(8)  |  浏览(1267)  |  评论(0)

WordPress插件开发

piaoling  2013-05-20 13:41:32

基本概念 插件机制是由Hook系统实现。使用Hook,插件开发者可以在文档(HTML)被浏览器渲染之前对其进行修改,或者可以在某个事件发生时做一些事情。 大多数WordPress插件API都是由以下两大基本元素构成: • Actions • Filters Actions: 事件驱动,特定事件发生时,比如:保存一篇Post,加载一个Admin Page或者向浏览器发送HTML;插件有能力Hook到这些事件中同时创建它们自己的事件。举个例子,一个插件可以在Post被保存的时候去Ping一 台服务器,又或者一个插件可以在用户信息更新的时候自动更新该用户在社交网络上的信息......

类别 :  wordpress(8)  |  浏览(1258)  |  评论(1)

get sub menu posts object by post id

piaoling  2013-03-28 10:43:01

/**  * 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......

类别 :  wordpress(8)  |  浏览(1697)  |  评论(0)
  • 1
  • Page:1/1  8 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类