Tagged Questions
0
votes
2answers
118 views
get USER ID in functions.php using user_register action
I am having trouble of getting the ID in user_register filter in functions.php...
Here is what I got
add_action( 'user_register', 'sendanotheremail' );
function sendanotheremail($user_id) {
...
2
votes
2answers
105 views
How to add the category ID to admin page
I want to add the categories ID to admin page.
I call it for my functions.php: require_once('includes/categories_custom_id.php');
The part of code:
function categoriesColumnsHeader($columns) {
...
1
vote
2answers
108 views
Getting the ID of any image for use in functions.php
I've added two custom fields to attachments on my site, so the user can add a special image credit.
I'm trying to write a function that looks to see if either of the custom fields are populated, and ...
3
votes
2answers
2k views
Get user id from email?
I'm working on an email system, and I'm onto the unsubscribing stage. Since most of my users would not know their user ID, I'm asking them to put their email into a text box (definitely preferred, ...
0
votes
1answer
162 views
Setting post_id for single.php based on URL without a redirect
I'm migrating a Joomla! database to Wordpress and the website has to remain exact regarding URLs. The Joomla site has its posts with .html extensions, and the importer I created maps the Joomla file ...