1. Lấy nội dung ghi chú ở file (ok)

C:\xampp\htdocs\test\wp-content\themes\twentyfifteen-child\example-file.php
/**
* Version: 1.3.4
* Author: Themify
*/
C:\xampp\htdocs\test\wp-content\themes\twentyfifteen-child\functions.php
<?php
$path = get_theme_file_path() . '/example-file.php';
$plugin_data = get_file_data($path, array('ver' => 'Version'));
echo '<pre>';
var_export($plugin_data);
echo '</pre>';
?>
Previous======== Start Nghiên cứu plugin Themify-wc-product-filter ======Next2. Khởi chạy class public (ok)
Last updated
Was this helpful?