wp-productzilla/wp-content/plugins/blocksy-companion/framework/includes/extension-with-features.php
rizal.productzilla e38e8b231d templating
2024-04-01 16:08:46 +07:00

27 lines
348 B
PHP

<?php
namespace Blocksy;
trait ExtensionWithFeatures {
public function getSlug() {
$class = get_class($this);
return str_replace(
'blocksy-extension-',
'',
strtolower(
preg_replace(
'/[A-Z]([A-Z](?![a-z]))*/',
'-$0',
lcfirst($class)
)
)
);
}
public function getFeatures() {
return [1, 2, 3];
}
}