I have The Events Calendar Plugin installed on my wordpress site. Now, there is an addon that I cannot afford right now (Community Events).
So, I kindly ask, how would I go about recreating just the basic functionality of having users post their own events on the frontend?
I am currently enrolled in a WordPress, plugin and theme development course and my progress is slow. This makes me wonder whether there is some code I can build upon to make my development faster.
Current Skillset: Basic PHP, Intermmediate Wordpress, CSS, HTML, Javascript not ES6, whatever that is. Some SQL (can create tables and write some queries)
What I can do so far:
Create a basic plugin and activating it in the admin dashboard
Creating Custom post types and Metaboxes
Saving my posts
Basic understanding of Actions and Filters
What I don't know how to do, yet:
Structure a plugin
Write good code
Clone the community events addon
I just require users to start posting their own events on my website via an interactive frontend and, those events to be refelcted under All Events in The Events Calendar Plugin
Thank you, I appreciate your feedback.
There used to be an alternative plugin a while ago, but it's either not around anymore or obsolete with the more recent versions.
If you want to avoid buying that plugin, I might recommend to either find an alternative events system plugin (other than The Events Calendar) or create two template pages: one for the user to view their events, and one for the user to create a new event or edit their existing events. Make sure only logged in users can access these pages with something like if ( ! is_user_logged_in() ) { wp_redirect( wp_login_url() ); exit; } (redirects to login page).
Related
I’m building a WP plugin to enhance a website, and come to an interrogation with the workflow.
Basically, I have to create a custom post type, assorted with several custom taxonomies, which will be used/displayed on the frontend and backend, and create a backend section in order to interact with our CRM, and Supabase via their respective APIs (service centralisation).
All of the second part is only intended to be used/displayed on the admin section, to logged users.
However, when creating/saving a custom post type, or when viewing it from the frontend, I have to make a GET request to the CRM to fetch some data and store it in JSON somewhere (24h cache).
That I can do.
At the moment, I worked on the CPT part, and made a class to interact with the CRM, with credentials stored in wp_options. I now have to work on the backend part.
My question is: what are the best practices here? Keep it in a single plugin or divide into several plugins?
And if I divide, how should I turn it? 2 plugins, one for the CPT and one for the backend? Or go even deeper, and get the CRM and Supabase their own simple plugin, and call their methods to make my requests?
I am short of ideas here, so if you encountered this situation, could you enlighten me?
have spent hours of researching understanding the correct approach for developing plugin for wordpress which does have custom "service" URL.
So far done:
plugin registers custom capabilities and role
inits the db and entries using $wpdb
create rest-api hook that could be used with JS
Should do:
Only the users with custom role "service" shall have access to a service dashboard.
the service dashboard shall make use of $wpdb to query data from the db.
I am looking badly for a simple example to learn from which shows a custom page that isn't integrated into WP posts or the admin panel.
Something that does check current user and allow access for given role to e.g. "www.awesome-wp-page.com/myplugin/main" and load some further data later as e.g. "www.awesome-wp-page.com/myplugin/stats/1234"
Originally I wanted WP to query the data via its own custom restapi, but also did not find any examples that query rest-api within WP (providing nonce etc) as simple example.
I found a lot examples for admin panels, adding links to post etc, but to my surprise not really some examples which do load simple (form) page or do a quick custom DB query and show the results on a static link.
Any help is appreciated
I am confuse about plan subscription development in plugin, because if user download the whole plugin coding file then he/she can change the any of the code in plugin.
so how can develop this type of plugin. And also backupbuddy, gravityforms also make this type of annual subscription plan and if user make to code change in backupbuddy then deactivate the plugin but i can't understand the code which type of security in those plugin.
So, please suggest me how to develop.
I think Backup-buddy and gravity forms are used "filemtime" function for security purpose,because there are no any way to prevent user to modify code. because wordpress plugin are fully under control in user (open source).
I'm trying to get an idea of what Wordpress can do. I know there are tons of plugins out there, so the functionality of Wordpress is extremely extendable. But basically I just want to know if Wordpress can do what I want it to do before I invest a ton of effort into it.
I want to build a website where visitors can create an account. With this single account, they should be able to:
Shop in the store (perhaps WooCommerce) and view orders/etc.
Interact in the forums (perhaps bbPress) and view their posts, manage their forum profile, etc.
Subscribe to some "subscription-only" areas on the site
If this is possible, what's the best way to do it? Are there plugins for each of these things already interact with each other well? I'm open to any and all recommendations.
Yes , Wordpress can do all of the above with ease .
It has a quit powerful user-management system with user levels, roles and capabilities.
All of the functionality you have described above can be done with this system, and most of theplugins you have listed take advantage of that in some way or another. ( for example, adding custom user roles )
However, although it is possible to achieve with only plugins , Since roles and capabilities must be fine-tuned - in all likelihood you will have to do some adjustments or custom coding .
I need a plugin for wordpress that will allow people to put a message at the top of the site that may state things like upcomming events or notifications of outages of our server..etc...etc..
Anyone know of a plugin that can do this?
All the one's I've found like WP Announcement and Announcer don't seem to handle this very well. I cannot have the modal popup either.
I would suggest a roll your own version. Using a plugin framework, like PodsCMS can help with this and even make it manageable with custom admin menus. This combined with the Adminimize plugin can even help with restricting access to this feature on a user role basis.