Duminda Wijerathna

An all round web designer building websites Over 18 years. Interested in achieving a suitable placement in the field of IT in a growth oriented organization which offers diverse job responsibilities in order to utilize and improve my skills, Knowledge and experience.

How to disable (Read only) acf custom filed in wordpress?

Using bellow php code you can make ACF custom field as Read only.  Place bellow PHP code in your theme functions.php file /** * Read only input fields in Admin ACF Group * custom_field_name */ function disable_custom_field_name_load_field( $field ) { $field['readonly'] = 1; return $field; } add_filter('acf/load_field/name=custom_field_name', 'disable_custom_field_name_load_field'); References https://support.advancedcustomfields.com/forums/topic/read-only-field-2/ Duminda WijerathnaAn all round web …

How to disable (Read only) acf custom filed in wordpress? Read More »

AWS Lightsail WordPress Instance Database Crashes

How to diagnostic bitnami wordpress? you can run the bndiagnostic-tool using this command sudo /opt/bitnami/bndiagnostic-tool You will get this kind of output, In my case I’m having a 512mb Ram. So after upgrading it to 1 Gb issue solved. References https://github.com/bitnami https://github.com/bitnami/vms/issues/1003 Duminda WijerathnaAn all round web designer building websites Over 18 years. Interested in …

AWS Lightsail WordPress Instance Database Crashes Read More »

WooCommerce Add to cart URL with Quantity

Woocommerce add to cart url with quantity and redirect after checkout page. Bellow explain How to add product to cart page by using query string. How Add product to WooCommerce cart? https://yourdomain.com/?add-to-cart=&quantity=1 eg: https://yourdomain.com/?add-to-cart=1230&quantity=1 How Add product to WooCommerce cart and redirect to checkout page? https://yourdomain.com/checkout/?add-to-cart=&quantity=1 eg: https://yourdomain.com/checkout/?add-to-cart=1230&quantity=1 Note: for this to work, you should …

WooCommerce Add to cart URL with Quantity Read More »