| Server IP : 146.59.209.152 / Your IP : 216.73.216.152 Web Server : Apache System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : monpetu ( 144298) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/monpetu/www/ipprint/wp-content/plugins/surerank/inc/schema/types/ |
Upload File : |
<?php
/**
* Search_Action List
*
* This file handles the functionality for the Search Action schema type.
*
* @package SureRank
* @since 1.0.0
*/
namespace SureRank\Inc\Schema\Types;
use SureRank\Inc\Schema\Base;
use SureRank\Inc\Traits\Get_Instance;
/**
* Search_Action
* This class handles the functionality for the Search Action schema type.
*
* @since 1.0.0
*/
class Search_Action extends Base {
use Get_Instance;
/**
* Get Schema Data
*
* @return array<string, mixed>|array<int, array<string, mixed>>
* @since 1.0.0
*/
public function schema_data() {
return [
'title' => 'SearchAction',
'type' => 'SearchAction',
'show_on' => [
'rules' => [
'basic-global',
],
'specific' => [],
'specificText' => [],
],
'fields' => $this->parse_fields( $this->get() ),
];
}
/**
* Get Variables
*
* @return array<int, array<string, mixed>>
* @since 1.0.0
*/
public function get() {
return apply_filters(
'surerank_default_schema_type_search_action',
[
[
'id' => 'schema_name',
'label' => __( 'Schema Title', 'surerank' ),
'tooltip' => __( 'Give your schema a name to help you identify it later. This title is for internal reference only and won\'t be included in your site\'s structured data.', 'surerank' ),
'show' => true,
'default' => true,
'type' => 'Title',
'std' => 'SearchAction',
'is_name' => true,
],
[
'id' => '@id',
'type' => 'Hidden',
'std' => '%site.url%#%id%',
'required' => true,
'default' => true,
'show' => true,
],
[
'id' => 'target',
'type' => 'Hidden',
'required' => true,
'default' => true,
'show' => true,
'std' => '%site.search_url%',
],
[
'id' => 'query-input',
'type' => 'Hidden',
'required' => true,
'default' => true,
'show' => true,
'std' => 'required name=search_term_string',
],
]
);
}
}