Refer to https://www.mssqltips.com/sqlservertip/5107/resolve-sql-server-replication-error--could-not-find-stored-procedure-spmsupddbops/
Refer to https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-scriptpublicationcustomprocs-transact-sql?view=sql-server-2017
Scripts:
USE DBname
GO
EXEC sp_scriptpublicationcustomprocs @publication='XXXXX'
GO
EXEC sp_scriptpublicationcustomprocs @publication='XXXXX'