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 | |
function my_rating( $atts ) { | |
$rating = shortcode_atts( array( | |
'stars' => '', | |
'half' => 'false', | |
), $atts ); | |
$star = esc_attr($rating['stars']); | |
$stars = str_repeat('<i class="fas fa-fw fa-star"></i>', $star); | |
$half = esc_attr($rating['half']); |
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 | |
/** | |
* Support for WEBP. | |
* | |
* @package myplugin | |
*/ | |
// Security. | |
if ( ! defined( 'ABSPATH' ) ) { | |
die( 'Sorry, you are not allowed to access this page directly.' ); |
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 | |
/** | |
* RSS2 Feed Template for displaying RSS2 Posts feed. | |
* Adds an offset of "1" to display all but most recent | |
* | |
* Full details at: | |
* https://wordimpress.com/anatomy-advanced-wordpress-blog-notification-email | |
* | |
* @package Your Package Name | |
*/ |
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 | |
/** | |
* Displays the post modified date. | |
* | |
* @package There is no package. | |
*/ | |
/** | |
* Returns the last modified date for the post with the <time> tag and the | |
* time zone. |
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: Add Rel to Images | |
* Description: Add rel="noopener noreferrer" to linked images. | |
* | |
* @package There is no package. | |
*/ | |
/** | |
* With jQuery. |