It is better to start with an example of what you have tried. Trigger functions are part of Postgres and there are hundreds of examples on the web of many cases. It is not clear if you don't know how to do a trigger function, or to do your specific thing.
Not absolutely sure on what you are up to, but if you are passing a row with a column "disabled" set to true then you would test for that in your function (probably a plpgsql function) and then do the insert of new (the row being sent) into your other table. If you don't want to change the original table then you would need a before trigger and set new to old so no change is made.