Markdown URLs for LLMs (copy)

/** * After enabling this snippet, go to Settings > Permalinks and click “Save Changes” * Configure the $enabled_post_types array to specify which post types should support .md URLs */ $enabled_post_types = [ ‘post’, ‘page’ ]; // Add rewrite rule…Continue reading

MemberPress: Get All the Sub-Accounts Data Under a Corporate Parent User

function display_sub_account_users() { $user = MeprUtils::get_currentuserinfo(); $sub_user_ids = array(); $output = ”; if ($user !== false) { $transactions = $user->active_product_subscriptions(‘transactions’); if (!empty($transactions)) { foreach ($transactions as $txn) { if (($sub = $txn->subscription()) !== false) { // Recurring subscription $ca =…Continue reading

Add category to page

// Abilita categorie (e, opzionalmente, tag) per le Pagine add_action(‘init’, function () { register_taxonomy_for_object_type(‘category’, ‘page’); // categorie per le pagine // register_taxonomy_for_object_type(‘post_tag’, ‘page’); // opzionale: tag per le pagine });Continue reading