/**
* Registers Custom HTTP routes.
*
* @author rumur
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 | |
/** | |
* Class Arr. | |
*/ | |
class Arr { | |
/** | |
* Get an item from an array using `dot.key.notation`. | |
* | |
* @param array $array Target array. |
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
{ | |
"$schema": "https://json.schemastore.org/block.json", | |
"apiVersion": 2, | |
"version": "1.0.0", | |
"title": "Core Query Block with Menu Order Extender.", | |
"name": "namespace/extensions", | |
"editorScript": "file:index.js" | |
} |
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 | |
class EP_Email | |
{ | |
/** @var string Where to sent to */ | |
protected $to; | |
/** @var string Where to sent to as a hidden copy */ | |
protected $cc; |
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 | |
class Part_Factory | |
{ | |
protected $tpl; | |
protected $name; | |
protected $data = []; | |
/** | |
* Part_Factory constructor. |
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
# ~/.gitconfig | |
# Add this to your global git configuration file | |
# Change pstorm to wstorm, if you use that. | |
# Diff and merge tool changes | |
# Run `git difftool <directory/file>...` or `git mergetool <directory/file>...` | |
[diff] | |
tool = pstorm | |
[difftool] | |
prompt = false |
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 | |
/** | |
* Adds the button to the Category Screen and allows to reindex the Terms post count. | |
* | |
* @since v1.0 - 15.06.2018 | |
* | |
* @author rumur | |
*/ | |
add_action('current_screen', function($current_screen) { |
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 | |
/** | |
* Compiles html attributes for the entity. | |
* | |
* Example: | |
* $attributes = [ | |
* 'id' => 'content', | |
* 'data-number' => 23, | |
* 'class' => [ 'container', 'maina-page' ], | |
* 'style' => [ |
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 | |
/** | |
* Class RUM_Admin_Notice | |
* | |
* Created by Rumur. | |
* | |
* @usage RUM_Admin_Notice::get_instance()->add_error( 'Error' ); | |
* @usage RUM_Admin_Notice::get_instance()->add_warning( 'Warning' ); | |
* @usage RUM_Admin_Notice::get_instance()->add_info( 'Info' ); | |
* @usage RUM_Admin_Notice::get_instance()->add_success( 'Success' ); |
NewerOlder