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
{ | |
"title": "People and Blogs", | |
"script": "console.log ('Hi, fellow blogger!');", | |
"tabs": { | |
"interviews": { | |
"name": "P&B Interviews", | |
"description": "Feed of the latest P&B interviews", | |
"screenname": "pbnewsproduct", | |
"catname": "pbseries" | |
}, |
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
{ | |
"title": "WP Dev News", | |
"description": "All the news that's fit to error_log()", | |
"image": "https://make.wordpress.org/design/files/2016/09/WordPress-logotype-wmark.png", | |
"script": "console.log ('Hello, WP dev!')", | |
"style": [ | |
".divProductLogo {width: 125px;}", | |
".divProductTagline {color: blue}" | |
], | |
"tabs": { |
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
{ | |
"title": "news.scripting.com", | |
"description": "It's even worse than it appears.", | |
"image": "https://imgs.scripting.com/2023/12/24/slugger.png", | |
"script": "console.log ('Hello World')", | |
"style": [ | |
".divProductTagline {font-style: italic}", | |
".divProductTagline {color: blue}" | |
], | |
"tabs": { |
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
var urlTemplate = "https://drummer.land/chuck@grimmett.co/MakeWordPress.opml"; | |
const request = require ("request"); | |
function httpRespond (code, type, val, headers) { | |
if (headers === undefined) { | |
headers = new Object (); | |
} | |
if (type === undefined) { //7/20/18 by DW | |
type = "text/plain"; | |
} |
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 | |
if ($argc !== 2) { | |
echo "Usage: php csv-to-opml.php <csvFilePath>\n"; | |
exit(1); | |
} | |
$csvFilePath = $argv[1]; | |
// Define the output OPML file path | |
$opmlFilePath = 'output.opml'; // You can customize the output file name here |
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: Disable Auto-update for Yotpo Social Reviews for WooCommerce | |
Description: This plugin disables auto-updates for the Yotpo Social Reviews for WooCommerce plugin. | |
*/ | |
function disable_autoupdate_specific_plugins($update, $item) { | |
// Array of plugin slugs to never auto-update | |
$plugins = array( | |
'yotpo-social-reviews-for-woocommerce', |
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 to check if a URL exists in Wayback Machine | |
function checkWayback( $url ) { | |
$apiUrl = 'https://archive.org/wayback/available?url=' . urlencode( $url ); | |
$response = file_get_contents( $apiUrl ); | |
$json = json_decode( $response, true ); | |
if ( isset( $json['archived_snapshots']['closest']['url'] ) ) { | |
return $json['archived_snapshots']['closest']['url']; | |
} |
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 OPML Feed | |
Description: Implements a custom OPML feed at /.well-known/feeds/ | |
Author: cagrimmett | |
*/ | |
// Add custom rewrite rule | |
function custom_opml_rewrite_rule() { | |
add_rewrite_rule( '^\.well-known/feeds/?$', 'index.php?custom_opml_feed=1', 'top' ); |
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
license: gpl-3.0 | |
height: 510 |
NewerOlder