コード例 #1
0
function photonfill_dependency()
{
    $photonfill_dependency = new Plugin_Dependency('Jetpack', 'Jetpack by WordPress.com', 'http://jetpack.me/');
    if (!$photonfill_dependency->verify()) {
        // Cease activation
        die($photonfill_dependency->message());
    }
}
コード例 #2
0
function fm_bylines_dependency()
{
    $fm_bylines_dependency = new Plugin_Dependency('Fieldmanager Bylines', 'Fieldmanager', 'https://github.com/netaustin/wordpress-fieldmanager');
    if (!$fm_bylines_dependency->verify()) {
        // Cease activation
        die($fm_bylines_dependency->message());
    }
}