Files
wp-plugin-starter-template-…/includes/class-core.php
marcusquinn 200cc5671d Fix indentation issues in PHP files
- Fixed tabs vs spaces indentation issues in PHP files
- Updated phpcs.xml configuration
2025-04-21 15:01:09 +01:00

51 lines
896 B
PHP

<?php
/**
* Core functionality for the plugin
*
* @package WPALLSTARS\PluginStarterTemplate
*/
namespace WPALLSTARS\PluginStarterTemplate;
/**
* Core class
*/
class Core {
/**
* Plugin version
*
* @var string
*/
private $version;
/**
* Constructor
*
* @param string $version Plugin version.
*/
public function __construct( $version = '' ) {
// Initialize hooks.
$this->version = $version;
}
/**
* Example method to filter content
*
* @param string $content The content to filter.
* @return string The filtered content.
*/
public function filter_content( $content ) {
return $content;
}
/**
* Get the plugin version
*
* @return string The plugin version.
*/
public function get_plugin_version() {
return $this->version;
}
}