View figlet-fonts.txt
__ ____ | |
/ / ____ ________ ____ ___ / _/___ _______ ______ ___ | |
/ / / __ \/ ___/ _ \/ __ `__ \ / // __ \/ ___/ / / / __ `__ \ | |
/ /___/ /_/ / / / __/ / / / / / _/ // /_/ (__ ) /_/ / / / / / / | |
/_____/\____/_/ \___/_/ /_/ /_/ /___/ .___/____/\__,_/_/ /_/ /_/ | |
/_/ | |
Font Info: Slant by Glenn Chappell 3/93 -- based on Standard |
View rss-feed-shortcode.php
<?php | |
/** | |
* Show RSS feed with Shortcode. | |
* | |
* @example [show_rss_feed url="https://maheshwaghmare.com/feed/"] | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
*/ |
View add-post-type-to-feed.php
<?php | |
/** | |
* Add Custom Post Types (CPT) to feeds | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
* | |
* @return object | |
*/ |
View child-pages-list.php
<?php | |
add_shortcode( 'child_pages_list', function() { | |
$args = array( | |
'post_parent' => get_the_ID(), | |
'post_type' => get_post_type(), | |
); | |
$posts = get_children( $args ); | |
ob_start(); |
View pluign-get-deactivate-link.php
<?php | |
if( ! function_exists( 'prefix_get_plugin_deactivate_link' ) ) : | |
/** | |
* Generate and get the plugin deactivate link. | |
* | |
* E.g. | |
* | |
* $deactivate_url = prefix_get_plugin_deactivate_link( 'free-images/free-images.php', plugin_basename( __FILE__ ) ); | |
* |
View copy-as-html.php
<?php | |
/** | |
* Allow to copy as HTML. | |
* | |
* @todo Change the `prefix_` and with your own unique prefix. | |
* | |
* @since 1.0.0 | |
* | |
* @return mixed | |
*/ |
View sample-plugin.php
<?php | |
<?php | |
/** | |
* Plugin name: Sample Plugin | |
*/ | |
/** | |
* User Role Specific Post Type | |
* | |
* @package User Role Specific Post Type |
View add-tag-in-rest-field.php
<?php | |
add_action( 'rest_api_init', 'wp_portfolio_add_rest_field' ); | |
/** | |
* Add Rest Field | |
* | |
* @since 1.0.0 | |
* @return void | |
*/ | |
function wp_portfolio_add_rest_field() { |
View .htaccess
# | |
# Sources: | |
# http://stackoverflow.com/questions/7704624/how-can-i-use-gzip-compression-for-css-and-js-files-on-my-websites | |
# http://codex.wordpress.org/Output_Compression | |
# http://www.perun.net/2009/06/06/wordpress-websites-beschleuinigen-4-ein-zwischenergebnis/#comment-61086 | |
# http://www.smashingmagazine.com/smashing-book-1/performance-optimization-for-websites-part-2-of-2/ | |
# http://gtmetrix.com/configure-entity-tags-etags.html | |
# http://de.slideshare.net/walterebert/die-htaccessrichtignutzenwchh2014 | |
# http://de.slideshare.net/walterebert/mehr-performance-fr-wordpress | |
# https://andreashecht-blog.de/4183/ |
NewerOlder