No video

Code Snippets Duplicate Pages Posts CPTs - WordPress Code Snippet

  Рет қаралды 1,646

Web Squadron

Web Squadron

Күн бұрын

This code snippet enables the duplication of WordPress posts, pages, and all registered custom post types (CPTs). It adds a 'Duplicate' link to the row actions for each item in the admin dashboard. When clicked, this link triggers the duplication of the selected item, creating a new draft with the same content, custom fields, and taxonomies.
Big thanks to Superstar Mark Harris!
Code: codesnippets.c...
Code Snippets Duplicate Pages Posts CPTs - WordPress Code Snippet
Get our Awesome 'How to Build an Elementor Website Course' - Lifetime Updates and access to New Modules at no extra cost: learn.websquad...
Join our 'How to Start a Web Design Business' Course - and use strategies to grow, get clients, and generate recurring income: websquadron.co...
Book your 1-2-1 Consultation: websquadron.co...
We love to create - share - respond - and deliver.
🧐 Learn with our Mastery Modules: websquadron.co...
🔗 All of our Important Links: websquadron.co...
😃 Join our Facebook Group: / 3309523509284305
😃 Get Code Snippets Pro: r.freemius.com...
😃 Get Elementor Pro: be.elementor.c...
😃 Boost your KZfaq Analysis: www.tubebuddy....
👕 Get our Merchandise: websquadron.co...
🥹 Support us: paypal.me/Webs...
Hire us to work on your Website!
💌 info@websquadron.co.uk
👩‍💻 Visit websquadron.co.uk

Пікірлер: 27
@paulhildmann8392
@paulhildmann8392 9 ай бұрын
Thanks for these code snippets, they're very useful.
@boutzero
@boutzero 5 ай бұрын
i love you!
@davidmarek72
@davidmarek72 9 ай бұрын
Brilliant, thanks both!
@KillahManjaro
@KillahManjaro 9 ай бұрын
Another Gem!!
@humbertg.9661
@humbertg.9661 5 ай бұрын
Thanks for this! I usually added a plugin for this which I always thought unnecessary. Only issue I found with this code is that pop ups are not duplicated as pop ups but as pages, which means extra work for me. Cheers!
@websquadron
@websquadron 5 ай бұрын
Ah.... there always has to be a compromise. Thanks for letting me know.
@caknuckler
@caknuckler 9 ай бұрын
Very timely. I just added my first code snippet. Trying to use a snippet to display a remote image link inside an html widget inside a loop grid based on a custom post. And Kablam! went the site. Thank goodness for backups lol.
@rogerio8710
@rogerio8710 9 ай бұрын
Obrigado pelo presente.
@JeffHesterDesigns
@JeffHesterDesigns 9 ай бұрын
Question about code snippets... Do they every need an update? Example; could these introduce a security risk, or be exploited?
@websquadron
@websquadron 9 ай бұрын
Should be fine
@NeilSnapePhotography
@NeilSnapePhotography 9 ай бұрын
Ah nice, I can now delete my duplicate plugins!!! One less each time a code snippet comes to rescue my bloat.
@websquadron
@websquadron 9 ай бұрын
Damn right!
@Tallbloke1976
@Tallbloke1976 9 ай бұрын
The thing I like about snippets, is the ability to turn them off when you don't need them.
@NeilSnapePhotography
@NeilSnapePhotography 9 ай бұрын
And we are not subject to constant updates as with plugins! @@Tallbloke1976
@arturo5050
@arturo5050 9 ай бұрын
Its there a way to duplicate a Single Product on the theme builder?
@websquadron
@websquadron 9 ай бұрын
Can you clarify?
@justindouglas3659
@justindouglas3659 9 ай бұрын
Hey imran is there a way i can add a cacel order button in the orders tab in the table of the orders in woocommerce?
@websquadron
@websquadron 9 ай бұрын
I’m sure I had a snippet for that.
@justindouglas3659
@justindouglas3659 9 ай бұрын
@@websquadron oh really could you show then i did look around in your videos but i couldn't find thought maybe you didn't make one
@vincentchen2938
@vincentchen2938 9 ай бұрын
Is it possible to make a quick link to the duplicate function? I tried to copy the link and use it, but not working
@websquadron
@websquadron 9 ай бұрын
codesnippets.cloud/snippet/Super-Snippet-Storage/Simple-Duplications
@michalkrakowiak
@michalkrakowiak 9 ай бұрын
Potential vulnerability found : Cross Site Scripting
@Tallbloke1976
@Tallbloke1976 9 ай бұрын
Odd, since $post_id is obtained from absint(), which ensures it's an absolute integer, it cannot contain any harmful scripts because it's guaranteed to be a number.
@dansk5227
@dansk5227 9 ай бұрын
what does this mean?
@Tallbloke1976
@Tallbloke1976 9 ай бұрын
The code has been updated and there are no vulnerabilities being flagged by Code Snippets now.
7 Wordpress Plugins I install on all websites (2024)
15:07
Rino de Boer
Рет қаралды 319 М.
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 15 МЛН
الذرة أنقذت حياتي🌽😱
00:27
Cool Tool SHORTS Arabic
Рет қаралды 23 МЛН
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
Run Any .EXE on Linux | 2024
3:01
Teach At3
Рет қаралды 7
How to win a argument
9:28
ajaxkmr
Рет қаралды 473 М.
NVIDIA Needs to STOP
11:35
Linus Tech Tips
Рет қаралды 580 М.
BENTO CSS GRID TUTORIAL WITH SOURCE CODE
15:55
Qode & Design
Рет қаралды 8 М.
13 Things To Remove From Your Website Immediately
12:33
Orbit Media Studios
Рет қаралды 308 М.
Crack the Code: How to Land Web Clients!
16:49
Web Squadron
Рет қаралды 3,6 М.
5 React Native Tips to WOW Your Users
16:36
Simon Grimm
Рет қаралды 21 М.
BEST Website Builder 2024 (My TOP Recommendation)
15:27
Metics Media
Рет қаралды 1,3 МЛН