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 WCFAY_Plugin_Settings { | |
public function __construct() { | |
} | |
public function create_page() { | |
} | |
public function register_settings() { |
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
#!/bin/bash | |
wget -rv -nc --timeout=15 --random-wait password="SomeSecurePassword" ftp://[email protected]/path/to/webdir/ |
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 | |
// The starting line | |
start(); | |
// 26 mile markers | |
for ( $mile = 1; $mile <= 26; $mile++ ) { | |
if ( $mile == 13 ) // Halfway mark | |
halfway_mark(); | |
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 Page_Object { | |
public $ID; | |
public $original_post; | |
public $data = array(); | |
public function __construct( $id ) { |
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 ( empty( $_POST['acf'] ) ) { | |
return; | |
} | |
if ( | |
!isset( $_POST['acf']['field_543aee78c4176'] ) | |
|| !isset( $_POST['acf']['field_543aee84c4177'] ) ) | |
{ | |
return; |
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
/* AUTOCOMPLETE */ | |
.autocomplete{ | |
width: 100%; | |
position: relative; | |
} | |
.autocomplete input{ | |
font-size: 1.2em; | |
width: 100%; |
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
<!-- /app/code/local/MyCompany/MyModule/etc/config.xml --> | |
<?xml version="1.0"?> | |
<config> | |
<adminhtml> | |
<layout> | |
<updates> | |
<mycompany_mymodule> | |
<file>mycompany/mytemplate.xml</file> |
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 ( file_exists( dirname( __FILE__ ) . '/cmb2/init.php' ) ) { | |
require_once dirname( __FILE__ ) . '/cmb2/init.php'; | |
} elseif ( file_exists( dirname( __FILE__ ) . '/CMB2/init.php' ) ) { | |
require_once dirname( __FILE__ ) . '/CMB2/init.php'; | |
} | |
add_action( 'cmb2_admin_init', 'yourprefix_register_demo_metabox' ); | |
/** |
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 | |
// W3 Total Cache Integration with Beaver Builder | |
add_filter( 'fl_builder_render_css', __NAMESPACE__ . '\bb_plugin_cdn_url' ); | |
function bb_plugin_cdn_url( $css ) { | |
// Based on wp-content/plugins/w3-total-cache/extensions/WordPressSEO.php | |
if ( class_exists( 'W3_Plugin_CdnCommon' ) ) { | |
$site_url = wp_upload_dir(); |
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
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello, World"); | |
} | |
} |
OlderNewer