This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.card.tabbed { | |
display: flex; | |
border: 1px solid #ddd; | |
border-radius: 8px; | |
overflow: hidden; | |
background: #fff; | |
margin: 20px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: | |
Create two meta fields in the user profile. In my case, the slug for the daily timing meta field is "usersessiontime" | |
and for the lifetime meta field, it is "user_daily_time" and for monthly record metafield is "monthly_session_store". | |
In case i set the idol time 20 seconds. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | |
<script> | |
jQuery(document).ready(function($) { | |
// Hide all existing rows when the page loads | |
$('.jet-form-builder-repeater__row').hide(); | |
// Attach a click event listener to the "Add New Comment" button | |
$('.jet-form-builder-repeater__new').on('click', function() { | |
// We need to wait for the new row to be added to the DOM | |
setTimeout(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Hook Name | |
registernewuseras | |
--PHP Hook | |
add_action( 'jet-form-builder/custom-action/registernewuseras', function( $request, $action_handler ) { | |
$username = sanitize_user($_POST['emailaddress']); | |
$email = sanitize_email($_POST['emailaddress']); | |
$first_name = sanitize_text_field($_POST['firstname']); | |
$last_name = sanitize_text_field($_POST['lastname']); | |
$password = sanitize_text_field($_POST['Password']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Hook Name | |
updateuser | |
--PHP Hook | |
add_action( 'jet-form-builder/custom-action/updateuser', function( $request, $action_handler ) { | |
$user_id = $request['quer_user_id']; | |
$role = $request['user-current-role']; | |
$user_status = $request['user-current-status']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Hook Name | |
storelogin | |
--PhP Hook | |
add_action( 'jet-form-builder/custom-action/storelogin', function( $request, $action_handler ) { | |
// Get the user email from the request | |
$user_email = $request['login_email']; | |
// Get the user data by email | |
$user_data = get_user_by('email', $user_email); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Hook Name | |
deleteownerdata | |
--PHP Hook | |
add_action('jet-form-builder/custom-action/deleteownerdata', function($request, $action_handler) { | |
// Sanitize the input fields to prevent any security issues | |
$property_name = isset($_POST['select_property']) ? sanitize_text_field($_POST['select_property']) : ''; | |
$community_name = isset($_POST['community-name']) ? sanitize_text_field($_POST['community-name']) : ''; | |
$responsible_person = sanitize_text_field($_POST['responsible_person']); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Hook Name | |
assignproperty | |
--Php Hook | |
add_action('jet-form-builder/custom-action/assignproperty', function($request, $action_handler) { | |
// Sanitize the input fields to prevent any security issues | |
$property_name = isset($_POST['select_property']) ? sanitize_text_field($_POST['select_property']) : ''; | |
$community_name = isset($_POST['community-name']) ? sanitize_text_field($_POST['community-name']) : ''; | |
$responsible_person = sanitize_text_field($_POST['responsible_person']); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Hook Name | |
create_terms | |
--PHP Hook | |
add_action( 'jet-form-builder/custom-action/create_terms', function( $request, $action_handler ) { | |
$terms = explode(',', $request['terms']); | |
$taxonomy = $request['tax']; // Replace with your actual taxonomy name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Hook name | |
registervisitor | |
--PHP Hook | |
add_action( 'jet-form-builder/custom-action/registervisitor', function( $request, $action_handler ) { | |
$username = sanitize_user($_POST['email']); | |
$email = sanitize_email($_POST['email']); | |
$first_name = sanitize_text_field($_POST['first-name']); | |
$user_status = sanitize_text_field($_POST['user-status']); |