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 | |
if ( 'PHP.wasm' === $_SERVER['SERVER_SOFTWARE'] && 'playground.wordpress.net' === $_SERVER['HTTP_HOST'] ) { | |
// inside playground.wordpress.net | |
} |
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 | |
namespace Blocksy; | |
/* | |
*/ | |
class Capabilities { | |
private $accounts_cache = null; |
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 | |
/** | |
* Override weDocs breadcrumb to add schema.org rich snippets metadata. | |
* | |
* @author Vova Feldman (@svovaf) | |
* | |
* @return void | |
*/ | |
function freemius_wedocs_breadcrumbs() { | |
global $post; |
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 | |
// Freemius PHP SDK - https://github.com/Freemius/freemius-php-sdk | |
require_once './php-sdk-master/freemius/Freemius.php'; | |
define( 'FS__API_SCOPE', 'developer' ); | |
define( 'FS__API_DEV_ID', 1234 ); | |
define( 'FS__API_PUBLIC_KEY', 'pk_YOUR_PUBLIC_KEY' ); | |
define( 'FS__API_SECRET_KEY', 'sk_YOUR_SECRET_KEY' ); | |
// Init SDK. |
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
// | |
// Gist was kindly contributed by @jamesckemp from @iconicwp. Thanks! | |
// | |
handler.open({ | |
... | |
purchaseCompleted: function( response ) { | |
var trial = response.purchase.trial_ends !== null, | |
total = trial ? 0 : response.purchase.initial_amount.toString(), | |
productName = 'Product Name', |
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
# forked from http://forge.mysql.com/tools/tool.php?id=137 | |
[client] | |
#password = [your_password] | |
port = 3306 | |
socket = /tmp/mysqld.sock | |
# *** Application-specific options follow here *** | |
# |
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 | |
/** | |
* When exporting using WP default export tool, use the | |
* markdown version when exist. | |
* | |
* @author Vova Feldman | |
* | |
* @param string $content | |
* | |
* @return string |
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 | |
/** | |
* Customize docs permalinks parsing. | |
* | |
* @author Vova Feldman | |
*/ | |
function freemius_docs_permastruct_rewrite() { | |
if ( post_type_exists( 'docs' ) ) { | |
// Modify root slug to "help" instead of docs. |
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
// Header search | |
.page-header | |
{ | |
.wedocs-search-form | |
{ | |
position: relative; | |
input | |
{ | |
@include placeholder(#999); |
NewerOlder