Popup Cookie WordPress select language and section (Elementor)

First of all you need to create a modal pop up with these parameters. after that you can use cookie js. <script type=”text/javascript” src=”https://cdn.jsdelivr.net/npm/[email protected]/src/js.cookie.min.js”></script> Remember that you need to include jquery before loading this js. For further details you can refer to https://github.com/js-cookie/js-cookie After including above js and Jquery in your code. You can directly … Read more

How to update records using $wpdb?

Logic of my function was all wrong, should have sorted the result in $trans_array before the foreach loop. Here is the updated code that worked, if anyone needs it: function rkm_translation_update() { global $wpdb; $trans_row = $wpdb->get_row(“SELECT * FROM id_item_lid”, OBJECT, 0); $id = $trans_row->id; $item = $trans_row->item_id; $lid = $trans_row->lid; $trans_array = $wpdb->get_results(“SELECT * … Read more