nachocano
Forum Replies Created
-
Forum: Plugins
In reply to: [Memphis Documents Library] Add a Link to a Website to a Document Library@street9009 could you solve it?
Forum: Plugins
In reply to: [Memphis Documents Library] Add a Link to a Website to a Document LibraryHi everyone, I am trying to do the same as @street9009 requests.
In many libraries it is necessary to add links to articles from other websites.
Maybe if we could add a new field to the form called LINK, and if that field is filled, a file will not be uploaded, and the LINK will be the CTA of the document.
I’m trying to do this, I was able to add the LINK field to the form, but I can’t bypass the file validations.”No file was uploaded, please try again.”
- This reply was modified 5 years, 6 months ago by nachocano.
Forum: Plugins
In reply to: [BuddyPress Docs] New & Edited Docs Post Status to PendingHi, I solved it by adding this function in function.php file
add_action( 'bp_docs_doc_saved', 'draft_publish'); function draft_publish( $bp_doc ) { wp_update_post( array( 'ID' => $bp_doc->doc_id, 'post_status' => 'bp_docs_pending', ) ); }It worked for me, but I don’t know if it will have any problems in the future.
- This reply was modified 6 years, 6 months ago by nachocano.
Forum: Plugins
In reply to: [BuddyPress Docs] New & Edited Docs Post Status to PendingHi!! I really need this to, I know the plugin have a moderation process now, i see it here: https://github.com/boonebgorges/buddypress-docs/blob/master/includes/addon-moderation.php
But, how do I activate it?
Or maybe I need pass params to bp_docs_post_args_before_save, how do I change the default post_status to bp_docs_pending editing the function.php file?
Thanks very much!