Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

plugin-development

Home/ plugin-development

plugins – Question: It is possible to pass $args that sent by add_settings_field() inside another function?

Question
I'm trying To do my plugin Setting with OOP PHP when I'm Creating Setting Filed it sends $args so I can use it in their function, but when I call this function in another place it is for $args and it's undefined. here are my codes:
0
Tom J Nowell 3 days 0 Answers 0 views

plugins – Remove all messages, when untrash a post

Question
I'm trying to replace default untrash message to my own with error class. admin_notices do everything as expected, but even if I return empty messages array in bulk_post_updated_messages filter, I'm still see notice, but with em
0
user3013494 7 days 0 Answers 0 views

plugins – How to Get Category Name When Export Products

Question
I'm writing an export plugin for WooCommerce. I want to print the product categories and subcategories in separate columns while exporting the products in the plugin I developed. My code is as below. function wpae_wp_all_export_csv_header
0
bekoyzc 1 week 0 Answers 0 views

How to stop your plugin from executing on certain pages?

Question
I'm building a plugin that extends WooCommerce and I want to prevent it from executing once it hits the template_redirect hook. My goal is to stop the plugin from loading all the assets on non-product pages. Any ideas on how to do this?
0
sackadelic 1 week 0 Answers 0 views

Install a MU plugin from within another plugin

Question
I am writing a plugin that needs to disable another plugin on specific pages of the site. I know how to do this using the option_active_plugins filter, but that filter only works from an MU plugin. So is it possible to programaticall
0
Luke Seall 1 week 0 Answers 0 views

plugin development – Why won’t this conditional script enqueue?

Question
I'm trying to get my admin scripts to enqueue if a user can moderate comments, but for some reason, this conditional is not working. I can place a var_dump('hello!') inside the "if" statement, and it displays...but wp_enqueue_{fileType
0
sackadelic 1 week 0 Answers 0 views

plugins – Changing labels of status filters for post grid

Question
Is there a way to change filter labels for custom post type? For example, change Drafts (2) to Disabled (2) without localization plugins like Loco Translate?
0
user3013494 1 week 0 Answers 0 views

Plugin development – get wordpress fields to display and update via custom plugin

Question
I have a woocommerce store and I am building a plugin that will share some of the same data for product variations. My plugin will list some of the product variation fields for all product variations and I need to know the best way to manage thes
0
LeeTee 1 week 0 Answers 0 views

plugin development – Console errors in 6.0-RC1 Widget screen

Question
Sine 6.0-RC1 the following console error appears on the block widgets screen, on Firefox: Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, c
0
Jacob N Breetvelt 1 week 0 Answers 0 views

php – Why is this shortcode outputting results in the the order of how they’re entered in ACF?

Question
I've been attempting to create a plugin that takes some ACF options page fields, and creates a shortcode which outputs an advertising code attached to an attribute e.g. [awin id="top_banner"] would ideally return the code specified for that ID whe
0
Eland 2 weeks 0 Answers 0 views
1 2 … 19
  • Recent
  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

    May 30, 2021
  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

    September 18, 2020
  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

    March 19, 2020
  • Tabula – Art, Music & Language School

    Tabula - Art, Music &

    Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

    March 19, 2020
  • Mega Posts Display for Elementor – Premium WordPress Plugin

    Mega Posts Display for Elementor

    Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

    March 19, 2020
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Recent

  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means ...

  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY ...

  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

Popular Questions

  • 404 error - Page not

    ...

  • How to echo the_excerpt without

    In the code snippet below, I trying to get the_excerpt to be ...

  • How to update meta fields

    I have an app written in Delphi and Indy components for Windows ...

Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.