PluginProbe
Commerce7 for WordPress / trunk
Commerce7 for WordPress vtrunk
1.8.1 1.8.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.3 1.2.0 1.2.1 1.2.2 1.2.3 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.3.4 1.3.5 1.4.0 1.4.1 All 37 releases
wp-commerce7 / includes / themeco / pro / load.php

load.php in Commerce7 for WordPress trunk, at includes/themeco/pro/load.php

33 lines 742 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Themeco Pro element integration.
4 *
5 * @package wp-commerce7
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 return;
10 }
11
12 require_once C7WP_ROOT . '/includes/themeco/pro/class-c7wp-themeco-pro.php';
13
14 /**
15 * Register Commerce7 Pro elements.
16 */
17 function c7wp_themeco_pro_register_elements() {
18 C7WP_Themeco_Pro::register_elements( C7WP::getInstance()->get_widgetsver() );
19 }
20 add_action( 'cs_register_elements', 'c7wp_themeco_pro_register_elements' );
21
22 /**
23 * Register Commerce7 icon for Pro builder.
24 *
25 * @param array $icon_map Icon map.
26 * @return array
27 */
28 function c7wp_themeco_pro_icon_map( $icon_map ) {
29 $icon_map['commerce7'] = C7WP_URI . 'assets/c7.svg';
30 return $icon_map;
31 }
32 add_filter( 'cs_icon_map', 'c7wp_themeco_pro_icon_map' );
33