Skip to content

Instantly share code, notes, and snippets.

View iqbalrony's full-sized avatar
🏠
Working from home

Iqbal Hossain Rony iqbalrony

🏠
Working from home
View GitHub Profile
@iqbalrony
iqbalrony / functions.php
Created May 10, 2021 17:04 — forked from sh-sabbir/functions.php
Elementor Widget category re-order
<?php
function add_elementor_widget_categories( $elements_manager ) {
$categories = [];
$categories['oceanic'] =
[
'title' => 'Oceanic Widgets',
'icon' => 'fa fa-plug'
];
@iqbalrony
iqbalrony / do-shortcode-callback.php
Created March 8, 2021 12:11 — forked from obiPlabon/do-shortcode-callback.php
Call a shortcode function by tag name
<?php
/**
* Call a shortcode function by tag name.
*
* @param string $tag The shortcode whose function to call.
* @param array $atts The attributes to pass to the shortcode function. Optional.
* @param array $content The shortcode's content. Default is null (none).
*
* @return string|bool False on failure, the result of the shortcode on success.
*/
@iqbalrony
iqbalrony / most-useful-terminal-command-list.txt
Created September 15, 2020 12:29 — forked from devAsadNur/most-useful-terminal-command-list.txt
A list of most used terminal command list.
=======================================================================
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//////////////// Most Useful Terminal Command List \\\\\\\\\\\\\\\\
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=======================================================================
01. Current Working Directory:
@iqbalrony
iqbalrony / get_os_and_browser.php
Last active July 15, 2022 04:55 — forked from Balamir/get_os_and_browser.php
PHP: get user operating system and browser information
<?php
/**
* Kullanicinin kullandigi isletim sistemi bilgisini alir.
*
* @since 2.0
*/
function getOS() {
$user_agent = $_SERVER['HTTP_USER_AGENT'];
@iqbalrony
iqbalrony / class.php
Created July 28, 2019 05:38 — forked from igorbenic/class.php
Extending Elementor: Custom Button Field & Skin | https://www.ibenic.com/extending-elementor-custom-button-field-skin
<?php
add_action( 'elementor/widget/before_render_content', 'custom_render_button' );
/**
* Adding a new attribute to our button
*
* @param \Elementor\Widget_Base $button
*/
function custom_render_button( $button ) {