Blog

Security Group Port Changes

User after add port in securiy group is restart required Assistant No, a restart of the EC2 instance is **not required** after adding a new port to the security group. ### Explanation: When you modify the security group (e.g., adding a new port rule), the changes take effect immediately. AWS security groups are stateful, meaning […]

Laravel Vue Breeze EC2

User configure laravel vue breeze on aws ec2 ubuntu instance Assistant To configure Laravel with Vue.js and Breeze on an AWS EC2 Ubuntu instance, follow these steps: ### Prerequisites: 1. **AWS EC2 instance** running Ubuntu. 2. **Node.js** and **npm** installed on your EC2 instance. 3. **PHP**, **Composer**, and **Laravel** installed. 4. **MySQL** (or another database) […]

AWS EC2 Vite Config

User why aws ec2 ubuntu apache shows http://localhost:5173 for laravel vue js breeze when ruh yarn run dev on aws ssh Assistant If your Laravel Vue.js Breeze application on an AWS EC2 instance is showing `http://localhost:5173` after running `yarn run dev`, it means that the Vite development server is being bound to the default `localhost` […]

Table styling adjustments

User add some margin between rows and border light grey Assistant To add margin between rows and make the border light grey in your HTML table, you can modify the table's CSS. Here's the updated code with the necessary changes: <table style="width:70%; border-collapse: separate; border-spacing: 0 10px; border: 1px solid lightgrey;"> <tr> <th><?php echo __('Are […]

Save ACF Field Custom Form

User we have acf field – state_licensed in group key – group_6736ee16d650a we want to save it from custom form wordpress Assistant To save an ACF (Advanced Custom Fields) field called `state_licensed` from a custom form in WordPress, you can use the `update_field()` function provided by ACF. This function allows you to save ACF fields […]

View User Entry Page

User class Pending_User_Approval_List extends WP_List_Table { // Constructor public function __construct() { parent::__construct( [ 'singular' => 'user', // Singular name of the item 'plural' => 'users', // Plural name of the item 'ajax' => false, // Whether this table supports ajax ] ); } // Define the columns for the table public function get_columns() { […]

Assign Custom Taxonomy Terms

User we have custom taxonomy ids and want assignt it to custom post when creating in wordpress Assistant To assign custom taxonomy terms to a custom post type when creating a post programmatically in WordPress, you can use the `wp_set_post_terms()` function. Here's a step-by-step guide on how to do this: ### Step 1: Register Your […]

Custom Form Approval Process

User create a form with user fields and some custom post type fields, then save it to dummy created custom post type and give option to admin first approve it when admin approve i create user and listing in wordpress Assistant To create a form with user fields and custom post type (CPT) fields, save […]

Raw MySQL Query WP

User raw mysql query worpress Assistant To perform a raw MySQL query in WordPress, you can use the `$wpdb` class, which is WordPress's database abstraction layer. Here's how you can run a raw MySQL query using `$wpdb`: ### Example: Running a SELECT query global $wpdb; // Example: Selecting all rows from the wp_users table $query […]

ACF Repeater Form Submit

User submit acf repetor field from custom worpdress form Assistant To submit an ACF (Advanced Custom Fields) Repeater field from a custom WordPress form, you can follow these steps: ### 1. Create the Custom Form You can create your custom form with the necessary fields, including the repeater fields. Here's an example of how you […]