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 the following PHP code and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
Hide labels or titles when fields are empty ( Send email action - content ) | |
Add this shortcode name to Send email post action ( content ) | |
[display_if_not_empty field="%your field name%" label="Your label name:"] | |
Repeat this process until all the fields | |
and the respective labels have been entered in each shortcode name. You may include as many as you want. | |
________________________________________ |
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 the following PHP code and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
Visitor tracker in WordPress with real-time updates and a smooth pop-up for admins. | |
___________________________________- | |
// Hook to add the visitor tracking and popup for admins | |
add_action('wp_footer', 'admin_visitor_tracker'); |
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 the following PHP code and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
Add the [user_profile_view_count] shortcode to your profile single page | |
Custom JetEngine code that shows the view count of every profile in ProfileBuilder. | |
______________________________________ | |
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 the following PHP code and create a PHP snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
This code snippet will help you to easily manage all 301 redirects and so simply redirect your old links on new directly | |
from wordpress admin. By using these redirects you can ensure that both human and search engine traffic gets sent to the | |
appropriate pages wich helps maintain your SEO value as well improve user experience. The snippet also incorporates caching | |
to ease up on database load which helps keep your site fast and efficient. It is simply a functional way of preserving the | |
integrity of your sites links all integrated without needing additional plugins, so you can maintain an easy and straight | |
forward workflow. |
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
UPDATED: 11-08-2024 | |
The code has been updated to address the concerns: | |
Nonce verification has been added to protect against CSRF attacks and ensure that only authorized requests are processed. | |
Input validation and sanitization are now in place for post_id and user_token to prevent malicious data from being processed. | |
XSS protection has been implemented by escaping all outputs before they are inserted into the DOM. | |
LocalStorage usage has been reviewed and is handled appropriately given the context. | |
Description: | |
Copy the following PHP code and create a PHP snippet using your snippet plugins, paste the code into the plugin and save it. |
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
UPDATED: 23.08.2024 | |
Description: | |
Copy the following JS code and create a JS snippet using your snippet plugins. | |
Paste the code into the plugin and save it. | |
I have appended the submit button with a class name called submit_confirm. | |
The advantage of this class is that it will only affect the form that holds the submit_confirm class and not any other forms, in case you have many forms. Remember to add the submit_confirm class to your respective submit buttons which need to work as pop ups. | |
This script integrates with JetFormBuilder to add a user-friendly confirmation popup when a |
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
Add this HTML code to your Jetformbuilder (Send Email) content, and do not forget to add your field names. | |
If you have more field names, just duplicate the code lines. | |
This template is designed for use with Jetformbuilder, featuring RTL (Right-to-Left) | |
text alignment and the elegant Amiri font. The template ensures proper rendering of text in | |
languages that read from right to left, such as Arabic. Simply add your content within the designated section, | |
and the template will automatically apply the specified font and alignment styles. | |
<style> |
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
Updates Made 31.08.2024: | |
Used input.onClear(): This method is used to clear the input field when available. | |
Checked for Input Type: Added a check to skip adding the clear button for checkbox and radio input types to avoid issues. | |
Description: | |
Copy the following HTML code and create a HTML snippet using your snippet plugins. Paste the code into the plugin and save it. | |
This code enhances the input fields in JetFormBuilder forms by adding a clear button that allows users to easily clear the input content. | |
The clear button appears when there is input and disappears when the input is empty. It also includes a smooth hover effect for the | |
clear button, changing its background and font colors. |
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 the following PHP code and create a PHP snippet using your snippet plugin. Paste the code into the plugin and save it. | |
This code snippet enhances the Profile Builder menu by allowing you to add Font Awesome icons to menu items. | |
It provides functionality in the backend to edit the icon's margin and position (left or right). | |
This customization ensures that you can visually enhance your menus to better suit your design needs. | |
_________________________________________________________________ | |
// Enqueue Font Awesome CSS from CDN | |
function enqueue_font_awesome_cdn() { |
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
UPDATED: 22.07.2024: User role functionality has been added to WordPress menus. | |
Remember to select a user role for any specific menu item if applicable. | |
Copy the following PHP code and create a PHP snippet using your snippet plugin. Paste the code into the plugin and save it. | |
This code snippet integrates the JetEngine Profile Builder menu into the WordPress menu system. | |
After adding this code, you will see a new menu item named "My Templates" on the left side of the WordPress menus. | |
Create a new menu and add the desired items from "My Templates". Save the menu, and you can then use any navigation | |
menu or megamenu widget to display the menu you just created. |
NewerOlder