• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question How can I use pm_Hook_Applications for scan applications?

sfsdg

New Pleskian
Hi, I'm need to scan WordPress applications. How can I use pm_Hook_Applications for scan applications?

I'm created Applilcations.php file on
Code:
 /usr/local/psa/admin/plib/modules/wys-center/hooks
path and here is my code;

Code:
<?php

class Modules_WysCenter_Applications implements pm_Hook_Applications
{
    /**
     * Handle application scan event
     * @param pm_Domain $domain
     */
    public function scan($domain) {
    }
    /**
     * Filter application to handle it by using a specific non-APS resources
     *
     * @param pm_Domain $domain
     * @param string $path
     * @return bool
     */
    public function isFiltered($domain, $path) { }
}
 
Last edited:
Hello @sfsdg,

Extensions API Documentation - Plesk 17.5

This hock is designed to a APS applications integration only. The "scan" method is called when somebody press button "Scan" in Applications tab. Here you've got a \pm_Domain object and you can implement any bussiness logic here according your's extension needs.

Method "isFiltered" is designed to display only the necessary applications according your bussiness logic. For example you don't wanna to show an APS application wich placed at some domain (example.com) with path "/wordpress/test-app/".

So you shouldn't implement this hook unlles you want to integrate your extension with Plesk APS feature
 
Back
Top