Type: php
When Update then Slack
// Notify Slack when a plugin, theme, or WordPress core is updated add_action(‘upgrader_process_complete’, ‘notify_slack_updates_v2’, 10, 2); function notify_slack_updates_v2($upgrader_object, $options) { $slackURL = “https://hooks.slack.com/services/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”; // Replace with your Slack Webhook URL $site_name = get_bloginfo(‘name’); // Plugin Updates if ($options[‘type’] === ‘plugin’…Continue reading
Untitled Snippet (copy)
Untitled Snippet
Untitled Snippet
Widget-TA-Sidebar-Tour-Types-that-visit
$posts = get_field(‘rel_tour_types’); if( $posts ): ?> Tour Types that Visit this AttractionContinue reading
Widget-Tour-Co-Sidebar-Top-Tours
$posts = get_field(‘rel_tours_offered’); if( $posts ): ?> Top ToursContinue reading
Widget-TA-Sidebar-Tour-Co-that-visit
$posts = get_field(‘rel_tour_company’); if( $posts ): ?> Tour Companies that Visit this AttractionContinue reading
Widget-Restaurant-Sidebar-Details
if(get_field(‘r_reservations’)) { echo ‘Reservations: Yes‘;} else { echo “Reservations: No“; } ?>Continue reading
Widget-Museum-Sidebar-Tour-Co-that-visit
$posts = get_field(‘rel_tour_company’); if( $posts ): ?> Tour Companies that Visit this MuseumContinue reading