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
UPDATED: 19.08.2025 | |
Copy the following PHP and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
Short description: | |
• A new design for choose file with new style, where everything can be controlled in backend. | |
• Added a new true network progress bar, when new images are uploaded. | |
• We have added a new option for image compression, where you can easily toggle on or off in backend. | |
(Note: Image compression works only on desktop and not on phone when you try to upload an image + image compression) | |
• We have added Target CSS Class where you add a CSS classname, and copy the same CSS classname and add it to the form |
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
Don’t forget to add your folder name here: | |
define( 'JFB_CUSTOM_UPLOAD_DIR_NAME', 'ADD_YOUR_FOLDER_NAME_HERE' ); | |
Find this line of code and add your folder name there. | |
Copy the following PHP and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
_______________________________________________________________ | |
/** | |
* JetFormBuilder custom upload directory | |
* Securely redirects JetFormBuilder file uploads to a custom folder |
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
Copy the following PHP and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
______________________________________ | |
add_filter( 'jet-booking/statuses', function( $statuses ) { | |
$translations = [ | |
'completed' => 'Godkjent', | |
'processing' => 'Behandler', | |
'on-hold' => 'På vent', |
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
Has developed a custom Trim Text with several new functionalities | |
( Dynamic field widget, Filter field output + Callback = JetEngine trim text) , | |
including the ability to choose custom trim title/text for each device, and also toggle a link on the title/text. | |
Copy the following PHP and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
____________________________________________ | |
/** |
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
UPDATED: 06.08.2025 | |
I've developed a custom code for JetFormBuilder post-submit action, which allows you to easily edit the label name, | |
something that's not possible by default in JetFormBuilder. | |
Copy the following PHP and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
___________________________- | |
<?php |
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
The JetFormBuilder custom code automatically changes the uploaded image filename and title based on the post title. | |
It also supports multiple image uploads as well as meta field media, such as galleries, etc. | |
Here’s what you need to do first (no need to change anything in the code): | |
Create a post action in the JetFormBuilder form, select "Call Hook", and name it: image_title. | |
IMPORTANT: MAKE SURE YOU ADD THE CALL HOOKS ACTION AT THE BOTTOM AND NOT AT THE TOP. | |
Copy the following PHP and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. |
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
We have developed a code for telephone input numbers, where it only allows users to type in numbers. | |
On phones and tablets, it automatically shows the number keyboard when you try to type in the field, | |
instead of the full keyboard. | |
By using the Set Input Mask option, you can restrict input to numbers. However, on phones and tablets, | |
the full keyboard still appears when trying to enter a value in a telephone input field. Normally, | |
it should only display the number keyboard instead of the full keyboard. | |
In JetFormBuilder, this does not work as expected by default. When a telephone input is selected, | |
it should trigger the number keyboard, but it doesn't. |
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
UPDATED: 28.01.2025 | |
This custom code is designed to effectively prevent auto-fill on JetFormBuilder forms, as well as other forms, | |
by dynamically altering the name attributes of input fields. When the page loads, it temporarily changes the name | |
attributes of visible inputs, text areas, and selects, and sets autocomplete to new-password to stop browsers from | |
auto-filling the fields. | |
During form submission, the original names are restored for accurate data handling. After submission, the name | |
attributes are randomized again to ensure auto-fill remains disabled in future interactions. This approach is ideal | |
for situations where you need to prevent unintended auto-completion by browsers while still preserving the correct |
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
UPDATED: 28.01.2025 | |
This custom code is designed to effectively prevent auto-fill on JetFormBuilder forms, as well as other forms, | |
by dynamically altering the name attributes of input fields. When the page loads, it temporarily changes the name | |
attributes of visible inputs, text areas, and selects, and sets autocomplete to new-password to stop browsers from | |
auto-filling the fields. | |
During form submission, the original names are restored for accurate data handling. After submission, the name | |
attributes are randomized again to ensure auto-fill remains disabled in future interactions. This approach is ideal | |
for situations where you need to prevent unintended auto-completion by browsers while still preserving the correct |
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
The code here creates a secure WordPress admin page for managing the slugs of CPTs. | |
Administrators can add, remove, and save CPT slugs that will be used to display post counts for each CPT in the user list table. | |
This functionality is secure and integrates seamlessly with WordPress. | |
Copy the following PHP code and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
Then, after that, go to CPT Settings in the toolbar dashboard of WordPress, and add all your CPT slug names there, | |
and click Save. After that, go to Users, and then All Users. There, you will see the CPT and posts counts. | |
__________________________________________ |
NewerOlder