Month: November 2024

User Role Dropdown Issue

User user role dropdown not showing in wordpress admin Assistant If the user role dropdown is not showing in the WordPress admin, it might be due to one of the following reasons. Here's how to troubleshoot: — ### 1. **Check User Permissions** – Ensure the logged-in user has sufficient permissions, such as an **Administrator** role. […]

WooCommerce Search Filter Setup

User add product categiries drodnwo before search input and modify search funcitonality according that to search keyword based on category if selected woocommerce Assistant To add a product categories dropdown before the search input in WooCommerce and modify the search functionality to filter by category if selected, follow these steps: — ### **1. Add Categories […]

Tab Content Hover Functionality

User document.addEventListener('DOMContentLoaded', function () { // Select all tabs, tab contents, and inner divs const tabs = document.querySelectorAll('.e-n-tabs .e-n-tab-title'); const tabContents = document.querySelectorAll('.e-n-tabs .e-n-tabs-content'); const tabDivs = document.querySelectorAll('.e-n-tabs .e-n-tabs-content > div'); // Select the inner divs inside .e-n-tabs-content // Function to hide all tab content and remove the active class from all tabs function hideAllTabs() […]

Tab Hover Functionality Update

User document.addEventListener('DOMContentLoaded', function () { // Select all tabs, tab contents, and inner divs const tabs = document.querySelectorAll('.e-n-tabs .e-n-tab-title'); const tabContents = document.querySelectorAll('.e-n-tabs .e-n-tabs-content'); const tabDivs = document.querySelectorAll('.e-n-tabs .e-n-tabs-content > div'); // Select the inner divs inside .e-n-tabs-content // Function to hide all tab content and remove the active class from all tabs function hideAllTabs() […]

Read More Less Functionality

User Full NameCEO and Managing Director Lorem ipsum dolor sit amet consectur adipiscing elit sed eiu. Read More apply readmore/less in above div js Assistant To implement a "Read More/Read Less" functionality in the given HTML structure, you can use JavaScript to toggle the visibility of the description text and switch the button text accordingly. […]

Read More Less Toggle

User add read more/read less in elementor text editor widget js Assistant To add a "Read More/Read Less" functionality to a text editor widget in Elementor using JavaScript, you can achieve this by using a combination of JavaScript and CSS. Here’s a step-by-step guide to implement it: ### Step 1: Add Custom CSS First, you'll […]

SSH Host Key Change Warning

User Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:/ySTGzwr10Q3BR5vPYONjHYvjAx6yNbg80w+IixINgE. Please contact your system administrator. Add correct host key in /home/admin1/.ssh/known_hosts to get rid of this message. Offending ECDSA […]

VerticalResponse API Integration

User $wsdl = "https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl"; //location of the wsdl $ses_time = 20; // duration of session in minutes // We use the default PHP soap client (http://php.net/manual/en/class.soapclient.php). $vr = new SoapClient($wsdl, array(/* 'local_cert' => $cert, 'passphrase' => $cert_pass */)); echo("Starting API sample coden"); // Logging in! This call returns a session ID which we'll use in […]

SOAP API Examples in Languages

User https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl send in diffrrent languages Assistant To interact with the WSDL provided (https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl), you can use it in various programming languages to consume the SOAP API. Here's an example of how to send a SOAP request in different languages: — ### **Python** Using the `zeep` library: from zeep import Client # Create a client […]

Change WP User Password

User change WP user password by code Assistant You can change a WordPress user's password programmatically using the `wp_set_password()` function or by updating the user's password hash in the database. Here's how you can do it: ### Option 1: Use `wp_set_password()` This method directly updates the password and logs the user out. <?php function change_user_password($user_id, […]