(a) After notice and a hearing, the court may issue an order for the payment of attorney’s fees and costs of the prevailing party.
(b) In any action in which the petitioner is the prevailing party and cannot afford to pay for the attorney’s fees and costs, the court shall, if appropriate based on the parties’ respective abilities to pay, order that the respondent pay petitioner’s attorney’s fees and costs for commencing and maintaining the proceeding. Whether the respondent shall be ordered to pay attorney’s fees and costs for the prevailing petitioner, and what amount shall be paid, shall be determined based upon (1) the respective incomes and needs of the parties, and (2) any factors affecting the parties’ respective abilities to pay.
(Amended by Stats. 2004, Ch. 472, Sec. 6. Effective January 1, 2005.)