wp-go/app/plugins/devexample/plugintt/main.go
2023-05-04 21:39:29 +08:00

25 lines
464 B
Go

package main
import (
"github.com/fthvgb1/wp-go/app/pkg/constraints"
"github.com/fthvgb1/wp-go/app/theme"
"github.com/fthvgb1/wp-go/app/theme/wp"
"plugintt/xx"
)
func init() {
// here can register theme
theme.AddThemeHookFunc("xxx", Xo)
}
func Xo(h *wp.Handle) {
// action or hook or config theme
h.PushHandler(constraints.PipeRender, constraints.Home, wp.HandleCall{
Fn: func(handle *wp.Handle) {
xx.Xo()
},
Order: 100,
Name: "xxxx",
})
}