Skip to content

Instantly share code, notes, and snippets.

Jany Martelli Jany-M

Block or report user

Report or block Jany-M

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Jany-M / wp_cf7_country-language_shortcode.php
Last active Jan 26, 2017 — forked from MatthewEppelsheimer/country-shortcode.php
[WP] Contact Form 7 shortcode with list of World Countries & Languages
View wp_cf7_country-language_shortcode.php
UPDATED: 23 Jan 2017.
- Truncated the longest country names, including:
-- British Indian Ocean Territories (Chagos Archipelago) -> British Indian Ocean Territories
-- South Georgia and the South Sandhich Islands -> South Georgia & S. Sandwich Islands
Jany-M / wp_posts.reset.sql
Created Aug 5, 2016 — forked from abrudtkuhl/wp_posts.reset.sql
Reset Auto_Increment in WordPress Posts table
View wp_posts.reset.sql
/*DELETE FROM wp_posts;
DELETE FROM wp_postmeta;*/
TRUNCATE TABLE wp_postmeta;
Jany-M / wp_ics.php
Last active Oct 24, 2019 — forked from jakebellacera/ICS.php
[WP] Generate a downloadable .ics file from any WordPress post or custom post type
View wp_ics.php
// Add a custom endpoint "calendar"
function add_calendar_feed(){
add_feed('calendar', 'export_ics');
// Only uncomment these 2 lines the first time you load this script, to update WP rewrite rules
/*global $wp_rewrite;
$wp_rewrite->flush_rules( false );*/
add_action('init', 'add_calendar_feed');
You can’t perform that action at this time.