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 | |
/* | |
* Since PHP5 there is no need to pass an reference of $this | |
* | |
* @see http://php.net/manual/en/language.oop5.references.php | |
* [...] As of PHP 5, an object variable doesn't contain the object itself as value anymore [...] | |
*/ | |
add_action( 'load-upload.php', array( $this, 'custom_bulk_action' ) ); | |
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 | |
/* | |
Template Name: Snarfer | |
*/ | |
global $wp_query; | |
$old_query = $wp_query; | |
query_posts('author=1'); | |
echo '<ul>'; |
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 Category_Widget extends WP_Widget { | |
public function __construct() { | |
$widget_ops = array( | |
'classname' => __CLASS__, | |
'description' => 'Displaying content depending on the current category', | |
); |
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 | |
/* | |
Plugin Name: Custom Importer | |
Plugin URI: | |
Description: Import posts or not | |
Author: Ralf Albert | |
Author URI: http://yoda.neun12.de | |
Version: 0.1 | |
Text Domain: custom-importer | |
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<products> | |
<product tax="19" status="luxus"> | |
<element>Benzin</element> | |
</product> | |
<product tax="7" status="grundnahrung"> | |
<element>Brot</element> | |
</product> | |
</products> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<products> | |
<last_updated>2009-11-30 13:52:40</last_updated> | |
<product tax="19" name="luxus"> | |
<element>foo</element> | |
</product> | |
<product tax="7" name="brot"> | |
<element>bar</element> | |
</product> | |
</products> |
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 | |
/** | |
* WordPress-Plugin Simple GPlus Avatar | |
* | |
* PHP version 5.3 | |
* | |
* @category PHP | |
* @package WordPress | |
* @subpackage Simple GPlus Avatar | |
* @author Ralf Albert <me@neun12.de> |
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 ShowMemberSince; | |
add_action( 'plugins_loaded', 'ShowMemberSince\init' ); | |
/** | |
* Adding needed action hooks | |
*/ | |
function init(){ |
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 | |
/** | |
* WordPress-Plugin Simple Facebook Avatar | |
* | |
* PHP version 5.3 | |
* | |
* @category PHP | |
* @package WordPress | |
* @subpackage Simple Facebook Avatar | |
* @author Ralf Albert <me@neun12.de> |