Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
namespace WP_Plugin_Name\Inc\Admin;
use WP_Plugin_Name\Inc\Common\CommonClass;
class Admin{
...
function foo(){
$common = new CommonClass();
$result = $common->commonFunction();
}
}
<?php
namespace WP_Plugin_Name\Inc\Common;
class CommonClass {
public function commonFunction(){
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.