This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Commands | |
-------------- | |
Wordpress Download = wp core download | |
Config.php file create = wp config create --dbname=database_name --dbuser=database_username --dbpass=database_password | |
Wordpress Install = wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=strongpassword [email protected] | |
Theme or Plugin Install = wp theme/plugin install theme_slug/plugin_slug | |
Theme or Plugin Activate = wp theme/plugin activate theme_slug/plugin_slug | |
Theme or Plugin Install & Activate = wp theme/plugin install theme_slug/plugin_slug --activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="IqbalRony-Custom" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> | |
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> | |
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml --> | |
<!-- Set a description for this ruleset. --> | |
<description>IqbalRony Custom Coding Standards</description> | |
<arg name="parallel" value="8" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_elementor_widget_categories( $elements_manager ) { | |
$categories = []; | |
$categories['oceanic'] = | |
[ | |
'title' => 'Oceanic Widgets', | |
'icon' => 'fa fa-plug' | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======================================================================= | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
//////////////// Most Useful Terminal Command List \\\\\\\\\\\\\\\\ | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
======================================================================= | |
01. Current Working Directory: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function($){ | |
"use strict"; | |
// By JavaScript | |
var $target = document.querySelector('.targetClass'); | |
var setPosition = function ($target) { | |
var docViewHeight = window.innerHeight; | |
var docViewTop = window.scrollY; | |
var docViewBottom = docViewTop + docViewHeight; | |
var eHeight = $target.offsetHeight; | |
var eTop = $target.offsetTop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$endpoint = 'https://api.instagram.com/oauth/access_token'; | |
// params the endpoint requires | |
$params = array( | |
'app_id' => 'your Instagram_APP_ID', // our instagram app id | |
'app_secret' => 'your Instagram_APP_SECRET', // our instagram app secret | |
'grant_type' => 'authorization_code', | |
'redirect_uri' => 'your redirect url', // our redirect uri | |
'code' => $_GET['code'] ? $_GET['code'] : '' // code instagram sent us in the URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/** | |
* The First way to get local time. | |
*/ | |
//var timeZone = new Date().toString().match(/([A-Z]+[\+-][0-9]+.*)/)[1]; return 'GMT+0600 (Bangladesh Standard Time)' | |
var pattern = /GMT(.*)\d/; | |
var GMT = pattern.exec(new Date().toString())[0]; | |
document.cookie = "GMT=" + GMT; | |
/** |
NewerOlder