-
Notifications
You must be signed in to change notification settings - Fork 2
/
artslab-nc-hook-api.php
52 lines (42 loc) · 1.46 KB
/
artslab-nc-hook-api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Plugin Name: Artslab Nanaska Hook API
* Description: Hooks into the WP API to collect data to enable the job portal core functions
* Plugin URI: https://plugins.artslabcreatives.com
* Version: 1.0.1
* Author: Artslab Creatives
* Author URI: https://plugins.artslabcreatives.com
* Text Domain: artlab-nc-hook-api
*
* Elementor tested up to: 3.7.0
* Elementor Pro tested up to: 3.7.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Add new form action after form submission.
*
* @since 1.0.1
* @param ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar $form_actions_registrar
* @return void
*/
function add_new_ctp_save_action( $form_actions_registrar ) {
include_once( __DIR__ . '/form-actions/artcpt.php' );
$form_actions_registrar->register( new \CPTSave_Action_After_Submit() );
}
add_action( 'elementor_pro/forms/actions/register', 'add_new_ctp_save_action' );
/**
* Add new form action after form submission.
*
* @since 1.0.1
* @param ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar $form_actions_registrar
* @return void
*/
function add_new_user_save_action( $form_actions_registrar ) {
include_once( __DIR__ . '/form-actions/artuser.php' );
$form_actions_registrar->register( new \UserSave_Action_After_Submit() );
}
add_action( 'elementor_pro/forms/actions/register', 'add_new_user_save_action' );
require_once( __DIR__ . '/updater.php' );
new ALCNCHUpdater();