PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 2.7.0
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v2.7.0
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
← All changes | includes/dynamic-keywords/class.php +1 -23 1.1.42.7.0 View file →
@@ -46,9 +46,8 @@
46 46 * @since 1.1.0
47 47 */
48 48 public function __construct() {
49 49 $this->load_keywords();
50 - $this->register_keywords();
51 50 }
52 51
53 52 /**
54 53 * Get keywords.
@@ -110,31 +109,10 @@
110 109 $keyword = new $keyword_class();
111 110
112 111 $this->get_keywords( $keyword->get_id(), $keyword->get_title(), $keyword->get_keywords_type() );
113 112
114 - $content = 'shortcode_content';
115 -
116 - if ( 'contact_segmentation' === $keyword->get_keywords_type() ) {
117 - $condition = $keyword->render_content();
118 - }
119 -
120 - if ( ! empty( $condition ) ) {
121 - $content = 'render_content';
122 - }
123 -
124 - add_shortcode( "sellkit-{$file_name}", [ $keyword, $content ] );
113 + add_shortcode( "sellkit-{$file_name}", [ $keyword, 'render_content' ] );
125 114 }
126 - }
127 -
128 - /**
129 - * Register keywords.
130 - *
131 - * @since 1.1.0
132 - */
133 - private function register_keywords() {
134 - $keywords = self::$keywords;
135 -
136 - return $keywords;
137 115 }
138 116 }
139 117
140 118 Sellkit_Dynamic_Keywords::get_instance();