Skip to content

Instantly share code, notes, and snippets.

View sayedulsayem's full-sized avatar
💻
Sr. Software Engineer (PHP, WordPress, Laravel, Vue)

Sayedul Sayem sayedulsayem

💻
Sr. Software Engineer (PHP, WordPress, Laravel, Vue)
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.
*/
@sayedulsayem
sayedulsayem / vs-code-setup-for-developers.md
Last active June 25, 2024 16:28
VS Code Setup for Developers

Settings json

{
    "workbench.colorTheme": "One Dark Pro Darker",
    "workbench.iconTheme": "material-icon-theme",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "editor.fontSize": 14,
    "editor.wordWrap": "on",
@iqbalrony
iqbalrony / elementor-tips-tricks.php
Last active October 16, 2024 09:13
Elementor coding tips tricks. (Exclude & Include example for elementor group control)
<?php
/*
* Exclude & Include in group control
*/
$this->add_group_control(
Group_Control_Background::get_type(),
[
'name' => 'item_background',
'label' => __( 'Background', 'happy-addons-pro' ),
'types' => [ 'classic', 'gradient' ],
@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'];