__construct()
-
why __construct() doesn’t work in a wordpress plugin?
Check the codes below. This work correctly as a php code, but doesn’t work as/in wordpress plugin:
<?php
/*
Plugin Name: myClass
Plugin URI:
Description: myClass
Version:
Author:
Author URI:
*/
class myClass {
function __construct() {
echo(‘this is __construct’);
}
}
$myClass = new myClass();
?>Please Help, Thanks…
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘__construct()’ is closed to new replies.