peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.31k stars 202 forks source link

Plugin example in C# #985

Open hlynnerup opened 2 years ago

hlynnerup commented 2 years ago

Hello peachpie

Can I find a complete WP plugin example written in C# somewhere. I want to make a plugin but needs some "inspiration" to get started!

TIA!

Henrik

jakubmisek commented 2 years ago

Hi!

There is a small C# plugin sample for WpDotNet at https://github.com/iolevel/peachpie-wordpress/tree/master/app/Plugins

We can extend the C# API in case you'd more specific use cases.

Thanks

hlynnerup commented 2 years ago

Hi Jakub,

The plugin I’m planning to create will have frontend and backend requirements; adding to std. user management (adding more information), “site belongings“ (which site(s) is a user belonging to) and as frontend granting access to information/pages (/info on pages) depending the specific logged in user.

To wrap my head around this I’m looking for inspiration – and requirement – from peachpie (I guess Wordpress can deliver information as well).

TIA