Skip to content

Instantly share code, notes, and snippets.

@abdul-alhasany
abdul-alhasany / vscode-settings.json
Created December 28, 2022 02:51
My config files
{
"editor.cursorStyle": "line",
"editor.cursorBlinking": "smooth",
"easycompile.compile": {
"ignore": [
"sass",
"scss"
]
},
"editor.lineNumbers": "interval",
@abdul-alhasany
abdul-alhasany / branches-to-folders.sh
Created November 9, 2022 00:22
Pull all branches from remote and copy into separate folder for each one
#https://stackoverflow.com/a/65020975
git fetch --all --prune
# reset branch only if it has deviated from the remote
function update_branch {
if git diff --exit-code --quiet $1; then
echo "No changes on branch $1"
else
echo "Resetting branch $1"
This file has been truncated, but you can view the full file.
let typesList = [
{
"slug": "Anything",
"name": "Anything"
},
{
"slug": "String",
"name": "String",
"children": [
{
This file has been truncated, but you can view the full file.
[{"name":"_wp_admin_bar_init","desc":"<p>UNHOOKING THIS FUNCTION WILL NOT PROPERLY REMOVE THE ADMIN BAR. For that, use show_admin_bar(false) or the {@see 'show_admin_bar'} filter.</p>","summary":"Instantiate the admin bar object and set it up as a global for access elsewhere.","type":"function","category":"Uncategorised","since":"3.1.0","access":"private","return":{"content":"Whether the admin bar was successfully initialized.","types":"bool"}},{"name":"wp_admin_bar_render","desc":"<p>This is called very late on the footer actions so that it will render after anything else being added to the footer.</p> <p>It includes the {@see 'admin_bar_menu'} action which should be used to hook in and add new menus to the admin bar. That way you can be sure that you are adding at most optimal point, right before the admin bar is rendered. This also gives you access to the <code>$post</code> global, among others.</p>","summary":"Renders the admin bar to the page based on the $wp_admin_bar->menu member var.","type":"function