WordPress plugins - php

I'm trying to create a custom version of WordPress and now I'm stucked with the plugins api...
Is there someone who can explain me how it works.
Thank you.

You could read the Developer Documentation of Wordpress, that's how everybody learns how to create plugins.

Start with this guide on writing your first plugin. Other than that, you should poke around existing plugins and see if you can follow all the API calls described here.
If you want more specific answers you should first start trying to develop something simple and come back when you hit a specific roadblock.

Related

Customize WordPress output based on form inputs

I have a Google Sheets spreadsheet containing a list of links and resources pertaining to a particular topic. I want to create a WordPress page where I ask the user a branching series of questions (i.e. "which topics are you interested in?") And depending on the answers to those questions, display only the links that are relevant to them.
I am a newbie when it comes to WordPress but I do have experience in programming (mostly in Python).
How could I go about doing something like this?
You should inmerse a bit on wordpress development as programmer, i will explain a fast progress for learn it.. read this https://codex.wordpress.org/Theme_Development and this https://codex.wordpress.org/Hardening_WordPress too.
Then when you check some videos for how to create your own template..
Do a CPT [ Custom Post Type ] who's called links of topic or something like, then you can create an "Archive-Topic-Links" (Very important for a wordpress developer [ https://developer.wordpress.org/files/2014/10/wp-hierarchy.png ] which files can you create before or after one) who gonna iterate over all of them.. look at this.. [ https://generatewp.com/post-type/ ] and try to learn about how to use a CMB2 for create inputs in your cpt is it a free version of ACF.
With this you will have a 50% of your proyect then should be learn how to categorize and much more... but when you reach this 50%.. the other will be easy.
Ah, try to don't use much plugins make your code.. and other tip wordpress isn't very friendly for multilanguage
I hope this improve to you, mate and other to start the wordpress development.
If you want to integrate PHP with google spreadsheet, I will use the google api https://developers.google.com/sheets/api/quickstart/php, in this way you can read all rows and integrate with php wordpress

Adding Google Analytics Dashboard to Custom Post Type [WordPress]

I have a theme in which I am attempting to add the plugin Google Analytics Dashboard's "sparkline" to the custom posts column. To make that a bit more clear, I need to add this:
To the columns here
And that's it! I'm just not well-versed with the PHP enough to know how to get this done. The analytics data appears out-of-the-box on all standard post types and some other custom ones, if that helps.
I would ask the developer for assistance, but he seems to have disappeared. Thanks in advance, and I'm hoping this is one of those quick, stupid situations where an easy answer can be shared with the greenhorn :)
Hello,
If you want to program solution by yourself of your team-it is not easy. You should use Google Analytics API for PHP. It is not possible to describe it at small peace of text,but, may be, following links will be helpful for you and your developer:
https://developers.google.com/analytics/devguides/reporting/core/v3/coreDevguide
http://code.google.com/p/google-api-php-client/downloads/list
https://developers.google.com/analytics/solutions/reporting

edit magento navigation without coding

I just recently started working with a Magento site, and so far I'm really not liking it. I need to remove a couple links from the main navigation, but I can't seem to find the option for it. I've googled it numerous times, and all I see are examples for coding the navigation. My question is, can you edit the site navigation like you can with say wordpress? Seeing how it's a cms I'd imagine the user should be able to make changes to the navigation using some type of interface, and without having to pull the files from the server and edit them.
Also just out of curiosity, for anyone experienced with Magento would you say it's a good choice for a cms? I've heard of it before, but haven't seen many sites that use it.
No!, so you have three options here.
Learn how to extend the navigation with the 100's of tutorials out there, it is really not that hard, assuming you have a theme you just have to edit app/design/frontend/[theme]/default/template/page/html/topmenu.phtml
Get an extension to do it for you.
Hire a developer to do it for you, we create a static block with installer for the html which make it slightly more user friendly to update in the future.
Stackoverflow is a bad place to ask questions like this, it is aimed at programmers and doing such a procedure is rudimentary stuff, I really hope you are a client trying to be cheap rather than someone who claims they can run this site.
Edit: The cms features are ok but you need to be able to code to set them all up so the end user can make the changes with WYSIWYG.
If you don't want to code for navigation then you can do below things
1) Create category and then Display Settings=>Display Mode=>static block only and Display Settings=>CMS Block=>static block name. In static block u can include in page url or custom page
2)You need to hire developer
If you're using Magento and have an integrated WordPress blog, it's possible to design a completely custom menu in the WordPress Admin using the menu builder. You have complete control over what menu items you want and the hierarchy of each item.
To get this to work, you need to integrate your WordPress blog using WordPress Integration in full integration mode. Your Magento template also has to be using the default Topmenu block.

wordpress help... integrating existing PHP code to work side-by-side

I know very little of WP aside form it being a CMS geared towards (or started from) blogging, but may people have found the product capable of functioning as their sites CMS.
I was recently asked to write a PHP app to signup, (with email confirm and email notification to admin), login to make and manage orders. - so a user can register and get an email confirmation... once they are approved, they can log in, and place an order. and manage their information. There is also an admin section to manage the users and requests... ALL very straight ahead.
So I write it - and test it and everything is fine... Until the client tells me that it's going to be part of a WP site.
Problem, the client ONLY knows HTML, NOT PHP... I don't know WP.
When I upload a directory to the root - and try to run the app, I get redirect to /$url .. and a page not found displaying in the WP theme.
I have a feeling it has to do with the AUTH module I'm using... but there is a huge BIG PICTURE issue I need to conquer - how to integrate an existing PHP app into a WP site...
Q: how do I reference and use the WP emailing system?
thx - I know it's a broad question. but if someone can point me into a direction...
I have read the post regarding templates in WP and setting up a template with PHP code so it's executed... but it seems 'wrong' to have to create a template for each php page.
What your app is about ? If you got only the Auth module already coded you should only import user and password because WP does this out-of-the-box.
Wordpress can be twist up for your need but you need to do it in the WP way :).
If you want to add some functions to it check out the plugin library on wordpress.org. If you know wordpress and no plugin match your needs then the best way to go is writing your own plugin : https://codex.wordpress.org/Writing_a_Plugin
Or maybe just add your custom functions into functions.php, see https://codex.wordpress.org/Theme_Development#Functions_File
For pages, you basically have to type of it in WP : articles - i.e. blog posts - and the static pages. You can add some custom one check https://codex.wordpress.org/Post_Types
I know this answer is more a bunch of links but if you don't nothing about WP you should first learn how it works before try to hack it.
Hope it helps !

Joomla User creation hooks

Is it possible to create a hook when a user creates an account?
I have googled and found some stuff on hooks and joomla but nothing really concrete.
Anyone knows if this is possible? Or do I really have to mess with the code. I just want to create code that is upgrade safe.
Thanks
Yes, this is possible. You're going to write an user plugin based on user events for plugin system. From your question I believe you want onAfterStoreUser or onBeforeStoreUser event hooks. Check these provided links for official documentation with examples.

Categories