A basic installation of Node.js, Express, and Socket.io served over https://
using a Letsencrypt SSL certificate.
- Spin up DO droplet
- Set up DNS
- Access the server via SSH
<?php | |
/** | |
* Shortcode to display "Log in" or "Log out" link. | |
* | |
* @return string HTML string for the login/logout link. | |
*/ | |
function dm_login_logout_shortcode() { | |
// Initialize an empty string to hold the output HTML. | |
$output = ''; |
<?php | |
/** | |
* Plugin Name: Export WooCommerce subscriptions | |
* Plugin URI: https://www.blue37.com/ | |
* Description: Export WooCommerce subscriptions to a CSV file. | |
* Version: 0.0.1 | |
* Requires at least: 6.0 | |
* Requires PHP: 8.0 | |
* Author: Blue 37 |
/** | |
* Adds a shortcode that displays the SEO description generated by the Filter Everything Pro | |
* plugin. If no description is available, the shortcode will display the default content. An | |
* an optional 'default' attribute can be used to specify the default content. | |
* | |
* @param array $atts An array of shortcode attributes. | |
* @return string The shortcode output. | |
*/ | |
function ps_add_filters_seo_description_shortcode($atts) | |
{ |
<?php | |
/* | |
* set GenerateBlocks button defaults | |
* | |
* @url https://github.com/tomusborne/generateblocks/blob/c2aad72f6868001c6f7fa9b606cafef511eebd1b/includes/defaults.php#L231-L243 | |
*/ | |
add_filter("generateblocks_defaults", function ($defaults) { | |
$color_settings = wp_parse_args( | |
get_option("generate_settings", []), | |
generate_get_color_defaults() |
A basic installation of Node.js, Express, and Socket.io served over https://
using a Letsencrypt SSL certificate.
<?php | |
/** | |
* Function to determine if login blocks should show. | |
* | |
* @return boolean true/false to show the block or not. | |
*/ | |
function dv_atttendee_login_open( $option_name, $defaults = array() ) { | |
$options = get_option('dv_event_settings_dv_settings_allow_attendee_login'); | |
//checking if setting is empty |
This tutorial is for jitsi-meet installation using 2 server or more. The main server will contain jitsi-meet react source code, prosody, nginx, and jicofo. The videobridge will be installed seperatelly on the second server and so on.
Before starting make sure there are no permission issues on the installation.
sudo systemctl restart prosody | |
sudo systemctl restart jicofo | |
sudo systemctl restart jitsi-videobridge2 | |
sudo systemctl restart nginx |
// Hooking into the single form view. | |
add_action( 'give_post_form_output', 'give_populate_amount_name_email' ); | |
function give_populate_amount_name_email() { | |
?> | |
<script> | |
// use an enclosure so we don't pollute the global space | |
(function(window, document, $, undefined){ |
<?php | |
/** | |
* Exclude products from a particular category on the shop page | |
*/ | |
function custom_pre_get_posts_query( $q ) { | |
$tax_query = (array) $q->get( 'tax_query' ); | |
$tax_query[] = array( |