Skip to content

Instantly share code, notes, and snippets.

@pogla
pogla / functions.php
Last active September 28, 2022 04:51
Pushover for WooCommerce - Add order coupon codes to message
add_filter(
'wc_pushover_notify_new_order',
function ( $args ) {
$order = wc_get_order( $args['order_id'] );
if ( ! $order ) {
return $args;
}
$order_coupons = $order->get_items( 'coupon' );
@pogla
pogla / prompts.md
Created September 10, 2023 09:51
ChatGPT Marketing Prompts

Get Monthly Content Calendar In 1 Click

Get a beautifully organized 4-week content calendar that targets your primary keyword using only transaction longtail keyword & clickbait style post titles. Try it out!

>I'd like you to help me come up with a content schedule for my blog that has the best chance of helping me rank for long tail keywords that are specific to my keyword. I'll tell you my main target keyword in the prompt below. Please target transaction style search terms only. Please come up with clickbait style titles for these blog posts. Please organize each blog post title in a nice looking table so that it looks like a calendar. Each week should be separated into its own table. Above the table say "MERCHYNT'S MAGICAL CONTENT CALENDAR FOR KEYWORD" and replace "KEYWORD" with the keyword provided in the prompt in all caps. The next line down say "Learn more about Merchynt's AI SEO tool at www.merchynt.com/profilepro. Then, under the table say "If you liked this prompt please like it on the prompt

@pogla
pogla / subscribe-beehiiv-api.php
Last active October 8, 2024 16:49
Add Beehiiv Subscriber via API
<?php
/**
* This file subscribes a subscriber to Beehiiv via API.
* Documentation: https://developers.beehiiv.com/api-reference/subscriptions/create
*/
/**
* Change this to your publication ID.
*
* @return string