• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress develop tests

WordPress develop tests

WordPress develop tests a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Tests_Admin_wpCommunityEvents::get_valid_events() – Get a sample of valid events.

You appear to be a bot. Output may be restricted

Description

Get a sample of valid events.

Usage

$array[] = Tests_Admin_wpCommunityEvents::get_valid_events();

Parameters

Returns

array[]

Source

File name: wordpress-develop-tests/phpunit/tests/admin/wpCommunityEvents.php


Lines:

1 to 55 of 55
  protected function get_valid_events() {
    return array(
      array(
        'type'                 => 'meetup',
        'title'                => 'Flexbox + CSS Grid: Magic for Responsive Layouts',
        'url'                  => 'https://www.meetup.com/Eastbay-WordPress-Meetup/events/236031233/',
        'meetup'               => 'The East Bay WordPress Meetup Group',
        'meetup_url'           => 'https://www.meetup.com/Eastbay-WordPress-Meetup/',
        'start_unix_timestamp' => strtotime( 'next Sunday 1pm' ),
        'end_unix_timestamp'   => strtotime( 'next Sunday 2pm' ),

        'location'             => array(
          'location'  => 'Oakland, CA, USA',
          'country'   => 'us',
          'latitude'  => 37.808453,
          'longitude' => -122.26593,
        ),
      ),

      array(
        'type'                 => 'meetup',
        'title'                => 'Part 3- Site Maintenance - Tools to Make It Easy',
        'url'                  => 'https://www.meetup.com/Wordpress-Bay-Area-CA-Foothills/events/237706839/',
        'meetup'               => 'WordPress Bay Area Foothills Group',
        'meetup_url'           => 'https://www.meetup.com/Wordpress-Bay-Area-CA-Foothills/',
        'start_unix_timestamp' => strtotime( 'next Wednesday 1:30pm' ),
        'end_unix_timestamp'   => strtotime( 'next Wednesday 2:30pm' ),

        'location'             => array(
          'location'  => 'Milpitas, CA, USA',
          'country'   => 'us',
          'latitude'  => 37.432813,
          'longitude' => -121.907095,
        ),
      ),

      array(
        'type'                 => 'wordcamp',
        'title'                => 'WordCamp San Francisco',
        'url'                  => 'https://sf.wordcamp.org/2020/',
        'meetup'               => null,
        'meetup_url'           => null,
        'start_unix_timestamp' => strtotime( 'next Saturday' ),
        'end_unix_timestamp'   => strtotime( 'next Saturday 8pm' ),

        'location'             => array(
          'location'  => 'San Francisco, CA',
          'country'   => 'US',
          'latitude'  => 37.432813,
          'longitude' => -121.907095,
        ),
      ),
    );
  }
 

 View on GitHub

Published: 20th March 2022 | Last updated: 20th March 2022

Primary Sidebar

Information

Function name: Tests_Admin_wpCommunityEvents::get_valid_events
Class ref: Tests_Admin_wpCommunityEvents
Plugin ref: WordPress develop tests
Version: 5.9.3
Sourcefile: phpunit/tests/admin/wpCommunityEvents.php
File ref: phpunit/tests/admin/wpCommunityEvents.php
Deprecated?: No
API Letters: A,G,T,V,W

Footer

WordPress develop tests
WordPress develop tests
WordPress develop tests a2z
WordPress 6.4.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  develop.wp-a2z.org
© Copyright WordPress develop tests 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites