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 | |
// Sortierbare Spalten registrieren | |
add_filter( 'manage_edit-{$posttype}_sortable_columns', 'manage_edit_{$posttype}_sortable_columns' ); | |
/** | |
* Mache Spalten sortierbar | |
* | |
* @param array $aColumns | |
* | |
* @return 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
<?php | |
// Spalten-Überschriften registrieren | |
add_filter( 'manage_{$posttype}_posts_columns', 'custom_manage_{$posttype}_posts_columns' ); | |
/** | |
* Hinzufügen der Spalten-Überschriften | |
* | |
* @param array $aColumns | |
* | |
* @return array $aColumns |
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 | |
for( $iIndex = 0; $iIndex < count( $aArray ); $iIndex++ ){ | |
} |
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 | |
//die funktion | |
function ctheme_options_init(){ | |
//Registrieren der Options "ctheme_theme", die Speichervariable in der Tabelle "ctheme_theme_options" und eine Validierungs-Funktion ("ctheme_options_validate", dazu später mehr) | |
register_setting('ctheme_theme', 'ctheme_theme_options', 'ctheme_options_validate'); | |
} | |
add_action('admin_init', 'ctheme_options_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 | |
//große & kleine Buchstaben + Zahlen, beliebige Größe, min 10 Zeichen, max 20 Zeichen | |
echo getRandomString( 20, 10 ); | |
//große Buchstaben + Zahlen, Fixe Größe von 15 Zeichen | |
echo getRandomString( 15, 1, true, array('bigtypes', 'nummerics') ); |
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
import flash.events.TimerEvent; | |
import flash.utils.Timer; | |
var myTimer:Timer = new Timer(5000); //Timer-Klasse, alle 5 Sekunden | |
myTimer.addEventListener(TimerEvent.TIMER, myFunction); //Welche Funktion soll alle x Sekunden aufgerufen werden? | |
myTimer.start(); //Den Timer starten |