Wordpress - Access to single plugin - php

I need to allow editor (role) to use "WP All Export" plugin.
I`m trying to solve my problem using this code:
add_options_page('WP All Export Pro', 'All Export', 'edit_posts', 'pmxe-admin-manage', 'wp-all-export-pro_options');
But its not working for me...
I'm a newbie in WP so any help will be appreciated.

As said in this post,
You need to set the proper capability, third parameter in the add_option_page() function which you would have used to create the menu.
http://codex.wordpress.org/Function_Reference/add_options_page
So, what you need to do is set the correct capability.
I think that capability is: 'manage_options'. (Look at line 145 here)
But maybe it is pmxe-manage-options?
The plugin registers the options page only when the user has that capability.

Try install this wordpress plugin. hope it help your solve your problem without coding it urself
https://wpfront.com/user-role-editor-pro/
purchase a license of this https://wordpress.org/plugins/admin-menu-editor/ allow you to add extra capabilities. You can even change naming of your admin menus/submenus many extra features :) I can only tell you its totally worth it

Related

Any way to assign role to different users on the same single Wordpress page/post?

Hello I am working in WordPress CMS. I need to complete a project which requires different users to act on a same post/page because they will be able to access and modify only the sections of posts they can have access.
So needs some plugin or action in WordPress by which I can achieve this feature. Please help.
Thanks in Advanace :)
User Roles is a plugin that we use and it's great.
For what you need, try Capability Manager Enhanced, it is pretty intuitive once you install it.

wordpress advanced custom fields and polylang integration

I used ACF plugin to build my page, I wanted to create the page that client could change what he wants in it. But I need to translate this page into 5 languages. I installed polylang, can't buy a pro version. I want to that my custom fields could be translatable, for now i can create a page in different languages, but they share custom fields, so if i set english version for it it would be seen in all language versions... I've search through the internet and can't find a working solution. Maybe someone here could help me. I would be very happy to read your solutions. Thanks.
You have to go into your Polylang settings and under Syncronization, uncheck the "Custom fields" box. This will allow you to have different languages.
Source
I would like to add that if you are dealing with "Theme Options", we did https://github.com/BeAPI/acf-options-for-polylang plugin to support this core-unsupported feature.
It’s a selfworking plugin, nothing to do after installation.
If you have some issues, inquirements, improvements or requests please refer to the github. I will be glad to help you.
So please check it out!
Had similar issue, in my case i had to connect the language versions https://prnt.sc/1u99vor. Add translation for the original page and you are set to go. Btw i am using Polylang free.

Joomla 3.8 Adding a Custom Registration Check

I'm building a website using Joomla 3.8.0.
I'd like to add a custom question to the registration process. For example, I'd like to ask them the capital city of Canada and then check upon submit if the answer was Ottawa. I'd like to do this, if possible,using an extension and not modifying php code within Joomla.
Does anyone know of such an extension? I've looked through the Joomla extensions directory already, but haven't seen one that seems to do what I want. Seems they all simply allow custom fields, but not fields that can be reviewed for a specific answer as described above. Preferably it would be free as well.
Thanks!
EasyCalcCheck Plus will do this for you. It's free. There are probably others too.

woocommerce custom field configuration

I need your help. Its my first time when I use woocomerce in WP and I don't know how to add custom button. On public product view I must add button with link to selected wikipedia page. On private admin product view I need custom url or text field in (wp-admin->product->add product).
Okey now I create custom field and taxonomiex but I don't know what next.
I tried to find some tutorials but I did not give advice.
I also had a similar situation like this. I purchased a plugin to fix it due to tight deadline. You can do it using below methods:
1) By using ready to use plugins
https://wordpress.org/plugins/woocommerce-custom-product-data-fields/screenshots/
(Free one)
https://codecanyon.net/item/woocommerce-custom-fields-product-addons/11332742
(Paid one)
2) You can also create a plugin by yourself
Basically a plugin will allow you to modify the site as you require without modifying the wordpress core. Learn about Hooks and Filters.
I would suggest you to go with 2nd option, learn to develop plugins so that it will be helpful for you in the long run. Read the documentation https://codex.wordpress.org/Plugin_API. It will take some time but it is worth it.

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 !

Categories