PATH:
home
/
letacommog
/
adelcya
/
wp-content
/
plugins
/
wpseo-local
/
classes
/
schema
<?php /** * @package WPSEO_Local\Frontend\Schema */ /** * Class WPSEO_Local_Place_Multiple. * * Manages the Schema for multiple Places. * * @property WPSEO_Schema_Context $context A value object with context variables. * @property array $options Local SEO options. */ class WPSEO_Local_Place_Multiple extends WPSEO_Local_Place implements WPSEO_Graph_Piece { /** * Constructor. * * @param WPSEO_Schema_Context $context A value object with context variables. */ public function __construct( WPSEO_Schema_Context $context ) { $this->context = $context; $this->options = get_option( 'wpseo_local' ); } /** * Determines whether or not this piece should be added to the graph. * * @return bool */ public function is_needed() { if ( is_singular( 'wpseo_locations' ) ) { return true; } return false; } /** * Generates JSON+LD output for locations. * * @return bool|array Array with Place schema data. Returns false no valid location is found. */ public function generate() { return $this->get_place_data( get_queried_object_id() ); } }
[+]
..
[-] class-place-multiple.php
[edit]
[-] class-place.php
[edit]
[-] class-organization-list.php
[edit]
[-] class-schema-ids.php
[edit]
[-] class-schema.php
[edit]
[-] class-organization.php
[edit]
[-] class-place-single.php
[edit]