Questions tagged [action-hook]

An Action Hook is an entry point into application and platform lifecycle operations on OpenShift by Red Hat.

OpenShift by Red Hat provides application developers entry points into various application and platform lifecycle operations. These entry points are referred to as "action hooks", and have a special location within the application’s Git repository.

During any OpenShift process which supports an action hook, the application action hook directory will be checked for an executable file matching the specified name. If such a file is present, it will be executed before returning control to the process.

21 questions
5
votes
2 answers

How to add a button to a sidebar widget?

I am quite new to WordPress and I want to add a custom button to the admin dashboard in the PointFinder theme. I am aware of the action hook concept and already successfully implemented my own action hook with do_action_ref_array() and called it…
salocinx
  • 3,715
  • 8
  • 61
  • 110
2
votes
0 answers

Wordpress action hook not firing (wpforms)

Ended up on a project with a Wordpress site. I am trying to post data from a form made with WPforms to an external API. Not a wordpress guy, but I read that I can hook into to action from other plugins by writing my own plugin. Here is my plugin,…
2
votes
1 answer

Prestashop debugging hooks

Is some solution in prestashop for tracking hooks call? Especially actions hooks I need to check where hooks is call and what hooks doing. It is hard to find functions for hooks. They can be everywhere.
Marcin Jaworski
  • 330
  • 2
  • 9
2
votes
1 answer

How to install Bower on OpenShift with an Action Hook?

I use a WildFly application server in a Java environment on OpenShift. In my pom.xml file I have specified to run bower install (with the exec-maven-plugin). Running bower install with exec-maven-plugin requires the presence of Bower on the…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
1
vote
0 answers

Not able to get featured image when post created through wordpress Rest API

Creating post through wordpress rest api and to set featured image I passed featured media as parameter and post is created and thumbnail id is set in database but get_post_meta doesn't return thumbnail…
1
vote
1 answer

Check if WooCommerce custom order status exist to execute code

I am creating woocommerce plugin and I have a custom order status "wc-shipped". I want to execute some plugin options for this custom order status only. Here is my code add_action('text_sms_form_fields', 'sms_woocommerce_fields', 10, 1); function…
1
vote
2 answers

WP - wp_create_user() inside transition_post_status hook

I have a situation where I need to create a new user every time a CPT post is created. The CPT has the following fields that can be filled out upon post creation: $user_name, and $user_email Here's what I'm trying, but it's not working: function…
Eric Brockman
  • 824
  • 2
  • 10
  • 37
1
vote
1 answer

Create a custom Wordpress REST API endpoint with a action hook

I am trying to create a Wordpress action hook that fires when a post is published, updated or deleted. When the action hook is triggered the new endpoint in the REST API should be created where I would store the time of the event, and some other…
Marija
  • 31
  • 1
  • 7
1
vote
0 answers

WPUF user profile select terms from taxonomy on wordpress using action hook

I have created a registration form on WPUF so that users can select their region from a taxonomy. The code is loaded on the form using an action hook. The code loads the terms from the taxonomy in a dropdown and users can select the region. But I am…
1
vote
1 answer

WordPress Plugin Register Taxonomy for Object Type of Theme Taxonomies

In my WordPress Plugin, I use the following code to automatically add Meta Boxes for all installed Taxonimies: add_action( 'init', 'my_plugin_register_taxonomies_for_object_type'); function my_plugin_register_taxonomies_for_object_type() { $args =…
xxtesaxx
  • 6,175
  • 2
  • 31
  • 50
1
vote
0 answers

Openshift action_hook is not executable

I have recently create my first Openshift node application and currently trying to get the build scripts working when I push to the server via git (using action_hook). I am writing the application using PhpStorm on Windows and have had no problem…
blemaire
  • 33
  • 1
  • 3
1
vote
1 answer

Woocommerce subscription hook argument only passing user id

I'm tapping into the subscription action hook scheduled_subscription_payment. function subscription_renewal($arg) { echo, '
' print_r($arg, true);
}
add_action( 'scheduled_subscription_payment', 'subscription_renewal' );

Its only returning…
Naterade
  • 2,635
  • 8
  • 34
  • 54
1
vote
0 answers

How to run an action hook on Red Hat OpenShift?

I read the documentation about Action Hook Scripts for OpenShift and created a pre_build action hook with the following commands on my OpenShift gear: rhc ssh jbosswildfly cd $OPENSHIFT_REPO_DIR/.openshift/action_hooks touch pre_build chmod a+x…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
0
votes
0 answers

Learndash and make automation using action hook php - learndash_lesson_completed

I am trying to connect Learndash with Make , using action hook. I have tried the code below , but when clicking the complete lesson on Learndash I get a PHP Fatal error. The code: function my_custom_lesson_completed_action( $user_id, $lesson_id )…
E E
  • 1
  • 1
0
votes
1 answer

How speed up the woocommerce REST API in sync product stock quantity?

I want sync stock quantity of site B (remote site) with site A, ie. when an order in site A is in process status, the quantity of same product in site B will be updated. For mapping product IDs, I add post meta in both site A and B. In order to do…
1
2