Theme/Plugins installation failed problem

I recently installed a wordpress site from Plesk panel.

I can install themes and plugins from plesk panel without a problem but when I try to add a new theme from the WP dashboard, it gives me the following error: “An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.”

It is not just about themes. When I try to install plugins from WP dashboard I encounter “Installation failed: 403 Forbidden HTML” error…Server Error 403 Forbidden You do not have permission to access this document.

Another problem is the Elementor Widget Panel does not load and has the continuously spinning. I installed it from the Plesk panel. It is like WP trying to access some files but it just can’t.

I feel like all those problems have a link with each other but couldn’t find the reason yet.

Go to Source
Author: mesakon

How to monetise wordpress plugin

I want to monetise a wordpress plugin that I am creating and I was wondering if I would be allowed to place adverts on the settings page? My plan is to release it on the wordpress plugin site.

Also, does anyone have any alternatives on monetising it? I considered codecanyon, but they do not seem to have many sales for plugins when I looked.

Go to Source
Author: Anon ymous

Display a selectable map in wordpress

I have a problem. I bought a theme, I created a page called “Harta”. The page looks like this:

enter image description here

Under the “test” part I want to display a world countries map. The map needs to be selectable, I need to select two countries, after selecting them, their names should be displayed into input elements of a form and then save the data of the form in the database. Any suggestions how to do that? Is there any plugin in wordpress that deals with the maps?

Go to Source
Author: Çlirim Kastrati

How to change the Media Uploader screen from WordPress admin to normal browse screen for frontend users for featured image submission

I have a theme form in my frontend which takes the featured image from the user. But my problem is when the user clicks the upload button they are taken to the normal MEDIA UPLOADER screen which is normal for admin users. On top of that, the site visitors can also see the other media library images. I want to change this media uploader screen to just file browse screen. My site users are of “Authors” category. Please need help!

Go to Source
Author: Muhammad Aurangzeb Khan

Wodpress Customizer Selective Refresh Div with respective Javascript and Localized data

There is a div with the selective refresh which is having a javascript to make some changes. As due to selective refresh HTML is dynamically updating hence respective javascript stops working as it has selected previous element which has obviously replaced.

How to deal with this situation? Is there any way to refresh the javascript as well?

Go to Source
Author: Rohit Patil

Naming problem helperpluginservice

I am looking for some service or plugin which can help with naming problem. Something that check consistency or checks for a verb in method names. May be suggesting how to shorten the name (which is not trivial for non native speakers). I’ve heard of code summarization researches. I don’t know will it solve such problem or not, but if it is, it would be interesting to look at such solution.

Go to Source
Author: Yaroslav Kishchenko

Multi-step, live updating search

I’m creating a website and want to set up a multi-step (live) filter for searching companies, industries etc and now I’m starting to explain…

I have 3 categories. First category has 5 criterias. When you choose one of them (it should be possible to choose ONLY one in the first stage) there are more criterias on the first sub-category and when you choose one criteria from the first sub-category (also should be possible to choose ONLY one) there comes the second sub-category where you can choose more criterias. It would be the best if you get the results LIVE. I’m searching for days and still can’t find anything. Hope it’s understandable and someone can help me. Thanks

Go to Source
Author: mivanov

Plugin wp-offload-media stopped working

I’ve just noticed that the plugin wp-offload-media has stopped working in my WP page. It stopped uploading to AWS but uploads to where the WP install is. How to debug it? I’m not experienced at WordPress at all.

Update: I’ve checked if the AWS key/secret worked – it still works.

Go to Source
Author: haxpanel

WPBakery vc_map populating from a field to another

I’m playing around with WPBakery Page Builder and its ability to be enhanced.
In order to achieve that, we can use an API function called vc_map (https://kb.wpbakery.com/docs/inner-api/vc_map/).
What I’m trying to achieve is populating values of “posttypes” param to a “dropdown” field. But I don’t figure out how to do that.
There might be a callback through param dependencies but it has to be written in JS and the API is in PHP.
So I will be glad if someone could show me the way 😉

Go to Source
Author: sugardaddy

Change WooCommerce backend Order_ID

I want to change the Order_ID Prefix on WooCommerce Order because the payment gateway only captures the order ID. As my payment gateway is integrated into three to five websites it is difficult differentiate which payment came from which website.

I have already implemented the Custom Sequential Pro Plugin from WooCommerce but it only changes the order ID on the front end. But the payment gateway collects Order ID from the backend. How can i add a prefix to the order_ID in the backend in WooCommerce.

images: woocommerce: https://pasteboard.co/JiGZcYR.png
Payment Gateway: https://pasteboard.co/JiGZOGY.png

Go to Source
Author: Aetzad Asghar

Make the product page as homepage WooCommerce

I’d like to make the product’s page as homepage. But this product’s page I created with Elementor Pro. I’m trying to use the shortcode [product_page id=99]. But it imports the standard page of theme, not the page I’ve created with Elementor. Someone knows how to do this?

Go to Source
Author: Gabriel Borges

Remove add_action from plugin

I use this plugin. Is for auto expire user on specific date.

I want to add this action add_action(‘edit_user_profile’, array($this, ‘extra_user_profile_fields’)) when is_admin only because i have a conflict with an other plugin. I have try this to source code:

if (is_admin) {
add_action('edit_user_profile', array($this, 'extra_user_profile_fields'))
}

and all work well! But i want to add a function to child theme.

class Expire_User_Admin
{

    var $settings = null;

    public function __construct()
    {
        $this->settings = new Expire_User_Settings();

        // Admin Actions
        add_action('admin_init', array($this, 'expire_user_now'));

        // Profile Fields

        add_action('show_user_profile', array($this, 'extra_user_profile_fields'));
        add_action('edit_user_profile', array($this, 'extra_user_profile_fields'));
        add_action('user_new_form', array($this, 'user_new_form')); 

...
}

So i have try this with no luck. Any thoughts?

add_action('init', 'remove_plugin_action', 9999);
function remove_plugin_action()
{
    $plugin_class = new Expire_User_Admin();    
    remove_action('edit_user_profile', array($plugin_class, 'extra_user_profile_fields'));
    if (is_admin()) {
     add_action('edit_user_profile', array($plugin_class, 'extra_user_profile_fields'));
    }
}

Go to Source
Author: xiamtoula

publish_{$post_type} hook works only for posts and not for custom post types or pages

I’m trying to send push notification when any of posts, custom post types or pages is published. I’m getting enabled post types from the plugin settings and adding action via foreach loop in my class __construct method. The problem is that it only works for posts and not for any of custom post types or pages. Here is my function and action:

foreach ((array)get_option('PushPostTypes') as $postType) {
    add_action("publish_{$postType}",  array($this, 'doNewPostPush'), 10, 2);
}

public function doNewPostPush($id, $post) {
    $pushData = array(
        'title' => $post->post_title,
        'body' => strip_tags($post->post_content),
        'data' => array(
            'url' => trailingslashit(get_permalink($id)),
        ),
    );

    if (has_post_thumbnail($id)) {
        $pushData['image'] = get_the_post_thumbnail_url($id);
    }
    
    $this->sendNotification($pushData);
}

get_option('PushPostTypes') is an array of post types that user choose, for example: array('post', 'page', 'custom_post');

Any idea why it only works for post and not for pages or custom post types?

Go to Source
Author: Akaki Khujadze

How can I add a custom Javascript snippet to display my feedback in footer?

I have the following Javascript snippet:

<script type="text/javascript" src="<script type="text/javascript" src="//www.auctionnudge.com/feed/feedback/js/theme/profile_table/limit/6/lang/english/UserID/stockmustgo/siteid/3"></script><div id="auction-nudge-feedback" class="auction-nudge"></div>

Which should dynamically display my eBay feedback like this:

https://gyazo.com/1ddc1e3f2ca21c91897a986a01654df8

How can I add this to my wordpress site? I tried installing the ‘ Header and Footer Scripts ‘ plugin to no avail. I’m sure it’s simple but I’m a beginner when it comes to anything web dev related.

It doesn’t need to be displayed in the footer. It can be within the body. I’ve asked around and I couldn’t find anyone that could help so I thought I’d try here. Thanks.

Go to Source
Author: Chrome123