mafsdisseny
Forum Replies Created
-
Any ideas? Please I am stuck with this…
Thanks.Forum: Plugins
In reply to: [Digest Notifications] Notification email when posts are updated/changedHi Pascal, thanks for your help.
I’m trying to do some tests with the plugin configuration and the notification messages, but I don’t know how to test it “immediately”. Is there any way to debug it? And see if the data is being processed correctly?
And, another question: What kind of notifications is sending the plugin by default? Have you considered allowing to control these parameters through the options panel? I think that it will be helpful for users in order to configure it, don’t you think?
Again, thank you very much for your help Pascal!Forum: Plugins
In reply to: [Digest Notifications] Notification email when posts are updated/changedOK, so if I declare my custom function in my child theme functions.php, and I attach it to the filter “digest_event_message”, it should work… More or less:
function updated_send_email( $post_id ) { // If this is just a revision, don't send the email. if ( wp_is_post_revision( $post_id ) ) return; $post_title = get_the_title( $post_id ); $post_url = get_permalink( $post_id ); $subject = 'A post has been updated'; $message = "A post has been updated on your website:\n\n"; $message .= $post_title . ": " . $post_url; return $message; //before i was sending a mail: //wp_mail( '[email protected]', $subject, $message ); //Now you suggest: //I guess that I need to declare the 'updated_post' item before add_filter( 'digest_event_message', $message, 'updated_post' ); } add_action( 'save_post', 'updated_send_email' );
Thanks for your guidance!
Forum: Plugins
In reply to: [Co-Authors Plus] Post list on admin not showing all postsMarcio! You are right! It works!
Anyway, there should be a generic solution, don’t you think? Maybe a filter for this $return will be appreciated… In order to don’t change the original code.
I still don’t understand what is causing the problem, I was thinking that the custom role capabilities were the responsible, but it seems that they are not.
Meanwhile, many thanks for your code!
Hi, the problem was, that after a migration to a new server, the uploads folder permissions were changed.
Checking this, everything works fine again.
Regards!
Forum: Plugins
In reply to: [Co-Authors Plus] Post list on admin not showing all postsHi Marcio,
I have exactly the same problem as you.I’m using the plugin “members” that allows you to create your own roles. I have found that the problem occurs when the role has the capability “edit_others_posts” deactivated. Everything works fine, when this capability is activated.
The problem is that this may not be a solution for my specific case, since these users are not allowed to edit the others contents.
I have also seen that this problem does not occur with “posts” only occurs when listing the different custom post types created for this project. An output of the $supported_post_types array, just in case, shows that all of them are supported…
Any ideas?
Forum: Plugins
In reply to: [Really Simple CSV Importer] Get the current post ID inside save_meta filterI cannot use the “post_saved” filter, because I need to rearrange meta data for a repeater field:
I’m working on an import process that involves a repeater field (ACF), which includes a text field and an attachment file field.
Note that, in my CSV, I have an URL for the attachment file field.
First I need to run the save_meta filter, in order to rearrange the data and put the repeater into an array, as you explained in your blog post: https://notnil-creative.com/blog/archives/2913
The problem comes when ACF don’t allow to save an URL in the attachment file field. Is at this point, when I use your “setAttachment” function, slightly modified for my convenience, and declared inside the plugin file. It works fine: it saves the attachment, and replaces the URL for the attachment resulting ID.
But inside the “setAttachment” function, I need to get the parent post_id to properly save the attachment, if not, it gets unattached.
Any ideas?
Forum: Plugins
In reply to: [Really Simple CSV Importer] Get the current post ID inside save_meta filterHi Takuro, first of all, thanks for your plugin!
Yes, but in my csv file, I’m not importing the ID number, so if I read the $post variable, ID still doesn’t exists.
So the question is, how to get the ID of the post that it’s being generated, for use it inside this filter?Forum: Plugins
In reply to: [Really Simple CSV Importer] How to Use With ACF Repeater Fields?vamban,
the author has a tutorial explaining it in his webpage:
https://notnil-creative.com/blog/archives/2913But, complementing your question:
How about to put an image or file field in the repeater? I need to save the file post id, and not the url…Any ideas?
Forum: Plugins
In reply to: [Contact Form 7 email verification] Duplicate EmailsIt seems to be solved doing a small change in the function that skips the mail.
You can check this commit to see in more detail.
I hope it helps!