Files
doitinpoland.com/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/slots/class-wpml-ls-shortcode-actions-slot.php
2023-09-12 21:41:04 +02:00

42 lines
1014 B
PHP

<?php
class WPML_LS_Shortcode_Actions_Slot extends WPML_LS_Slot {
/**
* @return array
*/
protected function get_allowed_properties() {
$allowed_properties = array(
'show' => array(
'type' => 'int',
'force_missing_to' => 0,
),
'template' => array(
'type' => 'string',
'force_missing_to' => $this->get_core_template( 'list-horizontal' ),
),
'slot_group' => array(
'type' => 'string',
'force_missing_to' => 'statics',
),
'slot_slug' => array(
'type' => 'string',
'force_missing_to' => 'shortcode_actions',
),
);
return array_merge( parent::get_allowed_properties(), $allowed_properties );
}
public function is_enabled() {
/**
* This filter allows to programmatically enable/disable the custom language switcher.
*
* @since 4.3.0
*
* @param bool The original status.
*/
return apply_filters( 'wpml_custom_language_switcher_is_enabled', parent::is_enabled() );
}
}