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
// via http://www.paulund.co.uk/change-the-enter-title-text-for-custom-post-types | |
// just saving it here for later reference | |
function change_default_title( $title ){ | |
$screen = get_current_screen(); | |
if ( $screen->post_type == 'product' ) { | |
return 'Enter New Product Here'; | |
} | |
} | |
add_filter( 'enter_title_here', 'change_default_title' ); |
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 My_Custom_My_Account_Endpoint { | |
/** | |
* Custom endpoint name. | |
* | |
* @var string | |
*/ | |
public static $endpoint = 'my-custom-endpoint'; |
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
/* Charlie Foxtrot - If You Know What It Means ;) */ | |
package main | |
import ( | |
"fmt" | |
"strings" | |
"bufio" | |
"os" | |
) |
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
/** | |
* Code snippet from http://উত্তরাধিকার.বাংলা/ | |
* | |
* Really inspiring if you wanna know code smell | |
* and how to write bad code | |
*/ | |
function determine_ashaba(sel_rel_arr,ashabas_from_qh,exclude_from_qh,qhs) | |
{ | |
var ashabas = []; |
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
<div class="article"> | |
<div class="heading">Article Heading</div> | |
<div class="article-content"> | |
<div class="paragraph"> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | |
</div> | |
<div class="paragraph"> | |
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | |
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse |
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 | |
/* | |
|--------------------------------------------------- | |
| PHP class to send HTTP request in better way | |
|--------------------------------------------------- | |
*/ | |
if(!class_exists('setHTTPRequest')){ | |
class setHTTPRequest | |
{ | |
/** |
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 | |
/** | |
* WooCommerce template overriding class | |
* | |
* @author obiPlabon | |
*/ | |
class WC_Template_Override { | |
/** |