How to extract alt attached image in a shorter way?

I am currently extracting the post attachment image (note: NOT the featured image, but a simple attachment img) this way: (functions.php file) function haruki($post_id) { global $post; $thumbnail_ID = get_post_thumbnail_id(); $images = get_children( array(‘post_parent’ => $post_id, ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order ID’) ); if ($images)…

Details

How does “acpi” or “upower” decide the battery percentage?

I’m using LXDE and battery applet shows 100% as battery state. Other commands supports that percentage: [email protected]:~$ acpi Battery 0: Full, 100% [email protected]:~$ upower -i `upower -e | grep bat` native-path: BAT1 vendor: LGC model: DELL 49VTP27J serial: 7849 power supply: yes updated: Fri 17 Jan 2020 11:46:50 AM +03 (105 seconds ago) has history:…

Details