This file contains 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
// copy this code in the child theme functions.php or a specific code plugin like FluentSnippets | |
// For the code to work, you need to install the Calculated Callback Add-on addons | |
// Plugin: https://github.com/MjHead/jet-engine-calculated-callback | |
// Plugin desc: https://crocoblock.com/knowledge-base/jetengine/calculated-callback-add-on/#custom-callback | |
// when you pasted the code, open the Elementor editor, and place the Dynamic Field widget, enable the Filter Field output | |
// Note that this calculation works correctly only for : Date meta | |
// The order matters. The first meta argument will be compared with the second. | |
// in the dropdown, select the Calculated field Callback |
This file contains 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
// copy this code in the child theme functions.php or a specific code plugin like FluentSnippets | |
// For the code to work, you need to install the Calculated Callback Add-on addons | |
// Plugin: https://github.com/MjHead/jet-engine-calculated-callback | |
// Plugin desc: https://crocoblock.com/knowledge-base/jetengine/calculated-callback-add-on/#custom-callback | |
// when you pasted the code, open the Elementor editor, and place the Dynamic Field widget, enable the Filter Field output | |
// Note that this calculation works correctly only for : DateTime meta | |
// The order matters. The first meta argument will be compared with the second. | |
// in the dropdown, select the Calculated field Callback |
This file contains 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
// place the code in the child theme functions.php or a custom code snippets plugin. | |
// This snippet will register a new dynamic visibility condition | |
// Work with only TUTOR LMS | |
// plugin : https://wordpress.org/plugins/tutor/ | |
add_action( 'jet-engine/modules/dynamic-visibility/conditions/register', function( $conditions_manager ) { | |
class Tutor_LMS_User_Enrolled_Course_Visibility extends \Jet_Engine\Modules\Dynamic_Visibility\Conditions\Base { | |
public function get_id() { |
This file contains 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
// copy this code in the child theme functions.php or a specific code plugin like FluentSnippets | |
// This code Based on the meta values you enter (you should enter at least 3), it will find the smallest and largest values and output them. | |
// For the code to work, you need to install the Calculated Callback Add-on addons | |
// Plugin: https://github.com/MjHead/jet-engine-calculated-callback | |
// Plugin desc: https://crocoblock.com/knowledge-base/jetengine/calculated-callback-add-on/#custom-callback | |
// when you pasted the code, open the Elementor editor, and place the Dynamic Field widget, enable the Filter Field output | |
// in the dropdown, select the Calculated field Callback |
This file contains 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
// This code can convert the number values to Hours, and minutes. | |
// Example, your meta store: "125" this calc can output to: 2h5m so 2 hours, and 5 minutes | |
// copy this code in the child theme functions.php or a specific code plugin like FluentSnippets | |
// For the code to work, you need to install the Calculated Callback Add-on addons | |
// Plugin: https://github.com/MjHead/jet-engine-calculated-callback | |
// Plugin desc: https://crocoblock.com/knowledge-base/jetengine/calculated-callback-add-on/#custom-callback | |
// when you pasted the code, open the Elementor editor, and place the Dynamic Field widget, enable the Filter Field output | |
// in the dropdown, select the Calculated field Callback |
This file contains 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
// This code uses the date meta to calculate how many years old. The calculation is done using | |
// the year from the given meta and the current date. The returned number simply returns the years. | |
// Can also be used with user listings. | |
// Ideally, the user should be able to specify when they were born, so that you can use the | |
// calculation to return how old they are at the moment. | |
// copy this code in the child theme functions.php or a specific code plugin like FluentSnippets | |
// For the code to work, you need to install the Calculated Callback Add-on addons | |
// Plugin: https://github.com/MjHead/jet-engine-calculated-callback |
This file contains 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
// place the code in the child theme functions.php or a custom code snippets plugin like FluentSnippets | |
// how to use | |
// Create a new Users Query in the Query builder | |
// Go to the Include/Exclude section | |
// click the Include section dynamic icon and choose the Fluent CRM / WP Users macro | |
// HELP IMAGE https://prnt.sc/06FFNY9E24Sg | |
// This macro returns the identifiers of users who can be found in fluentCRM as both contacts and wordpress users. | |
// It will not return users who are not registered on your WordPress site. The subscription status is independent for this macro. |
This file contains 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
// place the code in the child theme functions.php or a custom code snippets plugin like FluentSnippets | |
// how to use | |
// Create a new Users Query in the Query builder | |
// Go to the Include/Exclude section | |
// click the Include section dynamic icon and choose the Fluent CRM Users with Status | |
// HELP IMAGE https://prnt.sc/06FFNY9E24Sg | |
// This macro returns the identifiers of users who can be found in fluentCRM as both contacts and wordpress users. | |
// In addition you can select which subscription state you want to retrieve users from, you can retrieve users from all default states. |
This file contains 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
// place the code in the child theme functions.php or a custom code snippets plugin like FluentSnippets | |
// how to use | |
// Create a new Users Query in the Query builder | |
// Go to the Include/Exclude section | |
// click the Include section dynamic icon and choose the Fluent CRM Users with List | |
// HELP IMAGE https://prnt.sc/06FFNY9E24Sg | |
// This macro returns the identifiers of users who can be found in fluentCRM as both contacts and wordpress users. | |
// You can also select which CRM list you want to retrieve the users from |
This file contains 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
// place the code in the child theme functions.php or a custom code snippets plugin like FluentSnippets | |
// how to use | |
// Create a new Users Query in the Query builder | |
// Go to the Include/Exclude section | |
// click the Include section dynamic icon and choose the Fluent CRM Users with Contact Type | |
// HELP IMAGE https://prnt.sc/06FFNY9E24Sg | |
// This macro returns the identifiers of users who can be found in fluentCRM as both contacts and wordpress users. | |
// In addition, you can select which Contact type you want to retrieve users from. |