Questions tagged [hook]

A hook refers to replacing or extending a system or application's default behavior with a custom behavior for a specific event. For keyboard hooks prefer the tag [keyhook]. For git related hooking use the tag [githooks] alone. For hooking web services use the tag [webhooks] instead. For React hooks use tag[react-hooks].

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

Wordpress core function in custom hook

I developed a plugin that sends a report by email with plugins to update. For this I use the function Wordpress get_core_updates(). Everything works with the hook admin_post_ when I do a manual ...
madcoc5's user avatar
1 vote
0 answers
33 views

Hooking WinHttpReadData to intercept Data

I coded a simple script that sends a request and waits for the response using WinHttp. Now I'm trying to learn hooking and for testing purposes, I want to hook my own script using c++ detour. I tried ...
Menrion's user avatar
  • 51
1 vote
0 answers
15 views

How can i make an animation happen when i click a button ? NEXT.JS

I recently started a project with Next.js to build a portfolio with the purpose of learning to use the framework and I'm facing a wall. I would like to make an animation happen when I click on a ...
b4n's user avatar
  • 11
-3 votes
0 answers
20 views

Change VAT rules on shipping cost in woocommerce

we sell internationally (with lot of different vat rates on the prducts) and the shipping tax is standard based on the shipping address in woocommerce. Now I want to make an exception to this and ...
Orrier's user avatar
  • 1
1 vote
1 answer
26 views

Can't use `local-unset-key` in emacs to remove keybindings in org mode

I want to remove the key binding about "C-j" under org mode, then I am using "local-key-unset" to do it, but when I go to org-mode, the key binding is not removed. My code is as ...
Thysrael's user avatar
0 votes
0 answers
15 views

Bitbucket git push tag --no-verify results is pre-receive declined because someone else has an LFS lock on a file

We have a release script that creates a branch, pulls in the commits necessary and then performs a commit and push of a tag. Originally we did not use the --no-verify push option but changed after ...
gitrdone's user avatar
0 votes
0 answers
15 views

About the timing of calling the Start Commit Hook

I created a form program using PyQt and bound it with a Start Commit Hook. When I click the submit button, the form program will first pop up (the form program provides some fixed input boxes for ...
Hsthdkduh Gejdyshd's user avatar
-1 votes
0 answers
128 views

How to globally replace standard Delphi message dialog functions with a custom function?

I've developed a customized message dialog function in Delphi (10 Seattle) named Msg with several overloads. This function is designed to seamlessly replace the standard Application.MessageBox, ...
Mahan's user avatar
  • 141
0 votes
0 answers
10 views

Modified variable not passed in wordpress filter hook

I am using a (free) plugin to create filters to view posts on frontend, this plugin comes with various hooks, including one to modify the output after filtering. There I would like to add post date ...
maya's user avatar
  • 21
2 votes
1 answer
27 views

Running a custom hook after fixing a function

Using Dyalog APL 16, is it possible to define a function which is called directly after a function is fixed (with Ctrl+Down)?
August Karlstrom's user avatar
0 votes
2 answers
32 views

Cannot render content after loading variables into hooks from AsyncStorage (react-native/expo)

I'm developing my first app in react-native (expo). I did the flow of authentication and I'm using AsyncStorage to keep/manage the user info and jwt token. I did the first window for the logged user ...
David O.'s user avatar
0 votes
0 answers
23 views

sysctl hook in ios 15 leads to no mobile network connection

Hi i am hooking sysctl on ios 15, i have problem after hooking, imei code disappears, sim and mobile network service lose connection, can anyone help me! Here is code Objective C++ and Logos: int (* ...
dinhthiet's user avatar
2 votes
1 answer
30 views

after kubernetes preStop hook, is terminationGracePeriodSeconds still honored?

I have a preStop hook for my pod that sends TSTP signals to each process, and waits for their completion, but only to a maximum of 60 seconds. Let us say that we set terminationGracePeriodSeconds to ...
overflow_warrior_27's user avatar
0 votes
0 answers
16 views

How to trigger Mailster autoresponder when an existing subscriber subscribes again via action hook?

I am setting up an autoresponder from Mailster which will get triggered when an existing user signs up to my Newsletter again. I can't seem to figure out to trigger the autoresponder. This is the ...
Bcbgmaxazria's user avatar
0 votes
0 answers
32 views

Automatically Run a bash script when folder opens in windows on a USB drive

I want to create a automatic log file whenever the folder opens in the USB. In windows how to run a script when a folder is double clicked or opened from USB Drive. like this autorun.sh
vishal's user avatar
  • 462
0 votes
0 answers
29 views

how to create hook for Nested Json in wpdatatables in wordpress

i have wpdatatables installed on my wordpress website. i'm able to connect table to nested json link https://wp.kvvzwaluwen.be/u15a-wedstrijden/ table image linked to nested json i have the home id ...
David Brugmans's user avatar
0 votes
1 answer
22 views

Elementor - put Shortcode around a widget by hook?

does anyone know, how I can put a shortcode around a Elementor Widget. I need this for that GDPR thing. [shortcode] Elementor Widget [/shortcode] Maybe there is an action hook I can use ... before and ...
DenisCGN's user avatar
  • 397
0 votes
0 answers
35 views

Java - execution order between Junit tags and Cucumber hook tags - which ones go first?

is there any conjunction between Junit tags and Cucumber hook tags execution order ? I have a project with Cucumber feature file, step definition file and page object model. In feature file I want use ...
Word Place's user avatar
0 votes
1 answer
24 views

How to access id_order in hook hookDisplayOrderPreview (order preview on orders list in BO)

I see that id_order is not available in $params public function hookDisplayOrderPreview(array $params) { $id_cart = $params['id_cart']; $orderID = (int)$params['id_order']; /* $...
ButcherFromHell's user avatar
0 votes
1 answer
28 views

How to know the execution order of pytest hooks?

I am using pytest framework for testing purpose. When i start test_abc.py file , i saw that first of all pytest_configure is executed, then pytest_addoption ... So my question is: how we can know that ...
AppaD's user avatar
  • 1
0 votes
0 answers
32 views

WordPress hook "post_submitbox_misc_actions" not working

I am trying to add Modified Date field in edit.php file in backend admin panel and update its value with current date & time once post or page is updated. I have written following code but it is ...
Frank Martin's user avatar
  • 3,145
1 vote
1 answer
24 views

Adding some CSS using wp_footer hook doesn't work

To make the WooCommerce product image "display" the right way, I'm using CSS by usig the wp_footer hook. This way, the product thumbnail is displayed correctly on the checkout with margin, ...
Learning WooStoreFront's user avatar
0 votes
1 answer
40 views

Multi program use ftrace to hook same kernel function in same machine

I read this article and learn how to hook a linux kernel function by using ftrace. int fh_install_hook(struct ftrace_hook *hook) { err = ftrace_set_filter_ip(&hook->ops, hook->...
TienThanh's user avatar
0 votes
1 answer
39 views

Import preact hooks module locally (offline)

I am trying to use preact hooks in my web application. I am going through no build tools route. Following is the code I am using to do the job import { h, render, Component } from './preact.mjs'; ...
Setsuna Cyan's user avatar
0 votes
0 answers
88 views

Running Frida on Android Executable [ELF] with Custom Arguments

i want to run frida on Android executable[elf] with argument. like this is an cpp #include <iostream> #include <unistd.h> int main(int argc, char* argv[]){ printf("ARG 1 -> %...
Aimar's user avatar
  • 11
0 votes
1 answer
60 views

How to use Detour hook and modify C++ console (cout) output?

Print.cpp #include <iostream> #include <Windows.h> int main() { while (true) { std::cout << "Hello World!\n"; Sleep(500); } } Hook.cpp #include ...
Relaxing's user avatar
0 votes
0 answers
17 views

How can I pass and update a (environment) variable into my project on each compile with webpack?

I'm working on a webpack workflow where each time I change something to my project code an automatic commit is made. I want to pass the commit hash inside the compiled bundle so I can reference the ...
MishaHahaha's user avatar
0 votes
1 answer
27 views

How to remove a WordPress action which uses the current object - &$this - [WCFM-Ask a Question button]?

I'm new to php and I try modifying a Wordpress website with Woocommerce and WCFM multivendor plugin. Any help would be very helpful :) I'm trying to remove the "Ask a Question" button added ...
Aurélien's user avatar
0 votes
0 answers
9 views

Accidently Hooked an Application using SpyStudio

Yesterday I was doing some experiments and I tried to take control over an application and clicked Hook on that application. Now I am not able to take that application out of hook. This application is ...
Ishrar's user avatar
  • 105
1 vote
0 answers
49 views

How to Update multiple items at the single time - Directus 9.24.0v

I am trying to update multiple items simultaneously from extension hooks, but not happening I am facing 400 lousy request errors and using Axios requests patch requests. can anyone tell me where I ...
Suresh Madhaiyan's user avatar
0 votes
1 answer
69 views

How to hide folder using NtQueryDirectoryFile hook

I'm trying to hide a folder from explorer using the NtQueryDirectoryFile hook. I found a function code that hides files: NTSTATUS WINAPI Mine_NtQueryDirectoryFile(IN HANDLE FileHandle, IN HANDLE Event ...
NBB's user avatar
  • 13
0 votes
1 answer
40 views

How to catch SIGTERM signal to process stuff in app and then terminate in Java

So basically my app does some processing of stuff in intervals every 1 second. I have to implement a SIGTERM signal to my app but I have to let the stuff that is currently being processed in app to ...
essaPL's user avatar
  • 11
0 votes
0 answers
41 views

keyhook combinations with Alt Gr not working

I tried to make keyboard remapping using keyboard hook. It works fine with Shift, but it doesn't with Alt Gr - it's like it can't detect it pushed down while having multiple keys down or something. I ...
Werinl's user avatar
  • 1
0 votes
0 answers
30 views

Trouble With Creating A Global Hotkey To Write Out The Contents Of A Text File Without Unfocusing From Active Window

I created a very simple Python script that should read the contents of a text file and then simulate them as keypresses. import keyboard File_object = open("commandText.txt", "r") ...
Tamber Squirrel's user avatar
0 votes
1 answer
73 views

How do I retrieve data saved in local storage from a dynamic route with nextjs?

I am building a nextjs web app that fetches data from an api. Instead of pinging the external api server every time, I've been working on a way to save the json data to localstorage, and to render the ...
sadpandaemoji's user avatar
0 votes
0 answers
51 views

Trigger different order eMail notification with hooks for orders made by prepayment (bacs) or invoices (cheque)

I would like to use two different eMail notifications for customers in WooCommerce. One notification should be, if someone order with the prepayment method, which is called bacs in WooCommerce. The ...
Max's user avatar
  • 173
0 votes
0 answers
10 views

How can I hook functions that misuse the stack?

I have a DLL that gets injected into a process and hooks various functions using a Detours-like hooking library. In my hooks I call the original function with the original parameters and log some data....
Luke's user avatar
  • 11.2k
0 votes
0 answers
13 views

Hook script is active for 2nd repository, but not configured: Tortoise SVN

On my C: drive in Windows, I have a repository 'server' with the folder structure trunk, tags and branches as proposed by Tortoise. It is filled with some Text files in the trunk folder for testing ...
Steve1506's user avatar
5 votes
1 answer
101 views

Gitlab Server Hook version 16.1

Related with this issue The server-hook dont work Im trying to create a server-hook in gitlab. The objective is to create a hook that fires when any user push. We tried several things: Uncomment the ...
hesolar's user avatar
  • 543
0 votes
0 answers
12 views

not able to configure AzureDevops service webhook with jenkins

I had created 1 pipeline for.net application which will build and deploy the package to iis now I want to set a trigger that when code is committed on Azure repos the Jenkins build it automatically ...
Krushank's user avatar
0 votes
0 answers
26 views

Disabling windows key functions while the program is in focus (c++)

The idea of disabling the windows key I was able to find online, right now Im using a low level keyboard hook, but it disables the use of the key for the lifetime of the app. Is there a solution to ...
Joseph Katrinka's user avatar
0 votes
0 answers
32 views

Setting a hook on the Socket API with plthook

I want to set a hook on the connect function, I tried to use the plthook for libc.so.6 but it only works if I made the process only hook, which means other .so modules in the process will use the ...
Romashkin's user avatar
0 votes
0 answers
14 views

Mongoose post aggregate hook on $lookup

I have aggregation query of collection A with a $lookup on collection B. I want to set post hook on collection B that add some field to the found docs. And my question is it possible to use schema ...
S.T's user avatar
  • 1
0 votes
0 answers
27 views

IDirect3D8->CreateDevice() only works if I click into, out, then into again a window. EnumWindows problem?

So I'm hooking the EndScene function in a game to create a UI for my mod to it. And everything works fine when I click into, out, then into again the window I'm injecting my dll into. I'm using ...
Balázs Boros's user avatar
0 votes
0 answers
224 views

Correct way to fetch data via API before page is mounted in Nuxt 3

I would like to load profile data via API before page is mounted so that I can show profile data on the page. I have created a onBeforeMount VUE hook to load the data. My profile data is then stored ...
Aleksey's user avatar
  • 61
0 votes
0 answers
239 views

Elementor Pro Loop Grip Posts Filter Orderby Not Working

Here is my Loop Grid Orderby values which is set to now price with DESC value... that works just fine... I just want to dynamically change these orderby and order value via elementor/query/query_args ...
Sajjad Hossain Sagor's user avatar
0 votes
0 answers
20 views

Unable to install dependencies for my project - husky git hooks

after recovering a project, dependencies don't want to install because of git hooks (husky) I've tried several methods, such as deleting the package.json, installing the dependencies one by one or ...
zeitounmax's user avatar
0 votes
0 answers
94 views

Negating a regular expression

I have the following RegEx which I use in a pre-push git hook to verify the commit message: ^[mM].*|^[cCfF].*ABCDE-[0-9][0-9][0-9][0-9].* The message is supposed to start with m/M OR start with c/C/f/...
Leon Fischer's user avatar
0 votes
0 answers
59 views

Next js middleware session

I have this part of my code: const token = useAppSelector((state)=>state.UserLogged.userLogged.token) this line is for get token is one user is logged, so, que I run and I press ctrl + f5 on mapge ...
alex 's user avatar
  • 107
1 vote
0 answers
30 views

Adding custom attributes (visibility!) to a WordPress Blog

I want to add custom attributes to a WP blog (not page, or post!), which are editable as checkboxes from the 'Edit site' page, as on the following picture: The current values that are selectable are ...
BorsodiGerii's user avatar

1
2 3 4 5
115