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: Clear WP Content On redesigned pages | |
* Description: Clears the default WP content if the ACF flexible content field is not empty and uses the specified template. | |
* Version: 1.0 | |
* Author: Milan Bartalovics | |
*/ | |
// Schedule the event on plugin activation | |
function yco_yearly_cron_schedule() { |
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
import broadlink | |
import time | |
from typing import List | |
def discover_devices(): | |
devices = broadlink.discover(timeout=5, local_ip_address='') | |
if devices: | |
for device in devices: | |
device.auth() |