开发者 | taavi.aasver |
---|---|
更新时间 | 2015年9月17日 14:59 |
捐献地址: | 去捐款 |
PHP版本: | - 及以上 |
WordPress版本: | 4.3.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
$cm = new ClassifierManager(); print_r($cm->getClassifiers(1));
OR AJAX:
$http({ method: 'POST', url: $scope.ajaxurl, params: { 'action': 'wpc_ajax_getclassifiers', 'security': $scope.nonce, 'category' : 1 } }).success( function( data ) { //do something.. });
classifiers
folder to the /wp-content/plugins/
directoryThis plugin adds a new admin side page Classifiers.
There you can define your classifiers and categories.
Example: Your site user needs to select her favorite color.
1.) Define classifier category 'color'
2.) Define classifiers: 'black', 'blue' etc.
3.) Display these options in your template:
$cm = new ClassifierManager(); print_r($cm->getClassifiers(1));
OR AJAX:
$http({ method: 'POST', url: $scope.ajaxurl, params: { 'action': 'wpc_ajax_getclassifiers', 'security': $scope.nonce, 'category' : 1 } }).success( function( data ) { //do something.. });