PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.9
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.9
7.8.14 7.8.14.1 7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / inc / class-hustle-cross-sell.php
wordpress-popup / inc Last commit date
display-conditions 3 years ago front 10 months ago helpers 10 months ago metas 3 years ago multisite 3 years ago palettes 3 years ago provider 3 years ago providers 10 months ago templates 3 years ago update 3 years ago class-hustle-admin-page-abstract.php 10 months ago class-hustle-black-friday-campaign.php 7 months ago class-hustle-condition-factory.php 6 years ago class-hustle-cross-sell.php 10 months ago class-hustle-dashboard-admin.php 3 years ago class-hustle-data.php 3 years ago class-hustle-db.php 2 years ago class-hustle-installer.php 4 years ago class-hustle-meta.php 3 years ago class-hustle-module-admin.php 10 months ago class-hustle-module-collection.php 3 years ago class-hustle-module-page-abstract.php 2 years ago class-hustle-notifications.php 3 years ago class-hustle-settings-admin.php 3 years ago class-hustle-tutorials-page.php 4 years ago class-hustle-wp-dashboard-page.php 3 years ago hustle-deletion.php 3 years ago hustle-embedded-admin.php 3 years ago hustle-entries-admin.php 3 years ago hustle-entry-model.php 3 years ago hustle-general-data-protection.php 3 years ago hustle-init.php 7 months ago hustle-mail.php 3 years ago hustle-migration.php 3 years ago hustle-model.php 3 years ago hustle-module-model.php 10 months ago hustle-module-widget-legacy.php 3 years ago hustle-module-widget.php 3 years ago hustle-modules-common-admin-ajax.php 10 months ago hustle-popup-admin.php 3 years ago hustle-providers-admin.php 3 years ago hustle-providers.php 3 years ago hustle-settings-admin-ajax.php 3 years ago hustle-settings-page.php 3 years ago hustle-slidein-admin.php 3 years ago hustle-sshare-admin.php 3 years ago hustle-sshare-model.php 3 years ago hustle-tracking-model.php 3 years ago opt-in-geo.php 10 months ago opt-in-utils.php 3 years ago opt-in-wpmudev-api.php 3 years ago
class-hustle-cross-sell.php
59 lines
1 <?php
2 /**
3 * Hustle Cross Sell Class
4 *
5 * Set's and loads the Cross Sell sub module
6 *
7 * @package Hustle
8 * @since 7.8.7
9 */
10
11 /**
12 * File for Hustle_Cross_Sell class.
13 *
14 * @package Hustle
15 * @since 7.8.7
16 */
17 class Hustle_Cross_Sell {
18
19 /**
20 * Initiate sub module
21 *
22 * @since 7.8.7
23 */
24 public function __construct() {
25 add_action( 'init', array( $this, 'register_cross_sell_module' ) );
26 }
27
28 /**
29 * Get the arguments used when rendering the main page.
30 *
31 * @since 7.8.7
32 * @return void
33 */
34 public function register_cross_sell_module() {
35 $cross_sell_path = Opt_In::$plugin_path . 'lib/plugins-cross-sell-page/plugin-cross-sell.php';
36 if ( ! file_exists( $cross_sell_path ) ) {
37 return;
38 }
39 static $cross_sell = null;
40 if ( is_null( $cross_sell ) ) {
41 if ( ! class_exists( '\WPMUDEV\Modules\Plugin_Cross_Sell' ) ) {
42 require_once $cross_sell_path;
43 }
44
45 $submenu_params = array(
46 'slug' => 'wordpress-popup', // Required.
47 'parent_slug' => 'hustle', // Required.
48 'capability' => 'manage_options', // Optional.
49 'menu_slug' => 'hustle_cross_sell', // Optional - Strongly recommended to set in order to avoid admin page conflicts with other WPMU DEV plugins.
50 'position' => 13, // Optional – Usually a specific position will be required.
51 'translation_dir' => dirname( Opt_In::$plugin_path ) . '/languages', // Optional – The directory where the translation files are located.
52 // 'menu_hook_priority' => 99, // Optional – The priority of the menu hook.
53 );
54
55 $cross_sell = new \WPMUDEV\Modules\Plugin_Cross_Sell( $submenu_params );
56 }
57 }
58 }
59