Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Hooks - Unclear as how to use



Threaded Mode | Print  

 Hooks - Unclear as how to use, Hooks - Unclear as how to use (4 Replies, Read 3099 times)
mylogon
Group: Member
Post Group: Newbie
Posts: 27
Status:
If I read the hooks documentation correctly, all I have to do is rename the file post_upgrade.txt post_upgrade.php and say, insert the

// The id for WordPress is 26
    if($soft == 26){
        /* Do things only if its WordPress */   

but, then it shows arrays with username and passwords for each database.

Confused, does doing the above automatically update Wordpress every time
you door am I missing it?

Also, where is the list of Id's?

IP: --   

Hooks - Unclear as how to use
mylogon
Group: Member
Post Group: Newbie
Posts: 27
Status:
Whoops, I see the script id's file.
IP: --   

Hooks - Unclear as how to use
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5647
Status:
Hi,

The id '26' is the id for WordPress and whenever WordPress is installed the code written in the if condition will be executed.
You can find the script ids here:
/path-to-softaculous/enduser/scripts.php

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Hooks - Unclear as how to use
mylogon
Group: Member
Post Group: Newbie
Posts: 27
Status:
No I found the id's - see second post - but have it set and it does not seem to update anything.  Trying to find out how I can force a test, or add an id after the fact to update all.

In the example all my Wordpress still say they need to be updated.
IP: --   

Hooks - Unclear as how to use
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5647
Status:
Hi,

What code are you trying to execute and what output do you desire ?
Can you please open a Support ticket so that we can help you better.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 16, 2024, 10:52 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.017