| @@ -68,9 +68,23 @@ | ||
| 68 | 68 | |
| 69 | 69 | return; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + add_filter("plugin_action_links_shopengine/shopengine.php", function ($links) { | |
| 72 | 73 | |
| 74 | + $custom_links[] = '<a href="'.admin_url('edit.php?post_type=shopengine-template#getting-started').'" target="_blank">' . esc_html__('Settings', 'shopengine') . '</a>'; | |
| 75 | + | |
| 76 | + foreach ($custom_links as $custom_link): | |
| 77 | + array_unshift($links, $custom_link); | |
| 78 | + endforeach; | |
| 79 | + | |
| 80 | + if (!is_plugin_active('shopengine-pro/shopengine-pro.php')) { | |
| 81 | + $links[] = '<a href="https://wpmet.com/plugin/shopengine/pricing/" style="color:#FCB214;font-weight:700" target="_blank">' . esc_html__('Go Pro', 'shopengine') . '</a>'; | |
| 82 | + } | |
| 83 | + return $links; | |
| 84 | + }); | |
| 85 | + | |
| 86 | + | |
| 73 | 87 | /** |
| 74 | 88 | * Routes initialization |
| 75 | 89 | * |
| 76 | 90 | */ |
| @@ -165,16 +179,18 @@ | ||
| 165 | 179 | Base::instance()->init(); |
| 166 | 180 | |
| 167 | 181 | \ShopEngine\Core\Settings\Base::instance()->init(); |
| 168 | 182 | |
| 169 | - (new Module_Manifest)->init(); | |
| 183 | + new Libs\Select_Api\Base(); | |
| 170 | 184 | |
| 185 | + (new Module_Manifest())->init(); | |
| 186 | + | |
| 171 | 187 | // working get instance of elementor widget |
| 172 | - (new Manifest)->init(); | |
| 188 | + (new Manifest())->init(); | |
| 173 | 189 | |
| 174 | 190 | Query_Modifier::instance()->init(); |
| 175 | 191 | |
| 176 | - (new Conflict_Manifest)->init(); | |
| 192 | + (new Conflict_Manifest())->init(); | |
| 177 | 193 | |
| 178 | 194 | // view count |
| 179 | 195 | add_action('get_header', [$this, 'shopengine_track_product_views']); |
| 180 | 196 | |