This file contains hidden or 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
| Internacionalizando seu tema | |
| Para tornar seu tema traduzível é necessário adicionar os seguintes comentários no arquivo style.css: | |
| /** | |
| * Theme Name: Apenas um exemplo | |
| * Author: Autor do tema | |
| * Text Domain: apenas-um-exemplo | |
| * Domain Path: /languages | |
| */ |
This file contains hidden or 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
| #!/usr/bin/php -q | |
| <?php | |
| /* | |
| Ampp3d - Ampp3d Google Analytics | |
| Version: 0.1 | |
| Author: William Turrell | |
| Author URI: wturrell.co.uk | |
| Description: Use Google Analytics API to retrieve most popular pages and construct an HTML fragment we can use | |
| Adapted from http://www.techpunch.co.uk/development/oauth2-google-analytics-api-service-account-php and | |
| https://github.com/lobsterdore/analytics-api-oauth2-example/blob/master/mostPopularContentExample.php |
This file contains hidden or 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
| <? | |
| /** | |
| * Repeatable Custom Fields in a Metabox | |
| * Author: Helen Hou-Sandi | |
| * | |
| * From a bespoke system, so currently not modular - will fix soon | |
| * Note that this particular metadata is saved as one multidimensional array (serialized) | |
| */ | |
| function hhs_get_sample_options() { |
This file contains hidden or 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 | |
| // source: http://wordpress.stackexchange.com/questions/211703/need-a-simple-but-complete-example-of-adding-metabox-to-taxonomy | |
| // code authored by jgraup - http://wordpress.stackexchange.com/users/84219/jgraup | |
| // REGISTER TERM META | |
| add_action( 'init', '___register_term_meta_text' ); | |
| function ___register_term_meta_text() { |
NewerOlder