Articles of plugins

Add estimated value for a post according to the number of words

I have a blog where paid by 2 cents per word, need to add next to the word count one text value of statistics. Anyone have any idea how to make this automatic multiplication along with the word count? example: 27 words x $ 0.02 = $ 0.54 The panel show: Words: 27 | Estimated […]

I want to generate the pdf and save it in library?

i am using this code to generate pdf $base64_pdf = “data:application/pdf;base64,base64encodedpdf”.base64_encode($result); //$base64_pdf = $result; $pdf_base64_handler = fopen($base64_pdf,’r’); $pdf_content = fread ($pdf_base64_handler,filesize($base64_pdf)); fclose ($pdf_base64_handler); //Decode pdf content $pdf_decoded = base64_decode ($pdf_content); //Write data back to pdf file $pdf = fopen (‘test.pdf’,’w’); fwrite ($pdf,$pdf_decoded); //close output file fclose ($pdf); echo $pdf; var_dump($pdf); echo ‘Done’; the output now […]

New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?

I just noticed I have a “Custom Types” menu item on my wordpress backend (admin) menu. Picture: I tried disabling every plugin that has anything to do with custom post types and it was still there. So then I disabled every plugin in the backend and someone it is still there. New wordpress feature? Or […]

Modify featured image URL at runtime

Simple question: I know this can be achieved with a hook somewhere, but I’m having trouble tracking down exactly where I need to look to implement it. Basically, I need to hook into the featured image / thumbnail hook and update the image URL on the fly. Can someone lend a hand on how I […]

How to automatically add edit link on frontpage post of any wordpress theme?

Hi I searched google for a plugin to do so, I can’t find any. Can you recommend me one if not can I create it myself though I’m beginner in wordpress dev ? If yes can you give me some clues. Thanks. Update: I’m not interested in having edit link in admin bar; I bought […]

Setting Up PHP Workflow in WordPress

I started a wordpress site about games, and I’d like to setup a workflow to allow php devs to work on the backend without fear of breaking something on the main site. How can I modify plugins so they don’t affect the main site? I can run a server locally, and make my modifications with […]

Getting a Page via its post-name using WP REST API v2 and Postman

Using Postman as a Chrome extension I have had success accessing Pages(not posts as I don’t use them) from my WP website. Having trouble pulling data using the post-name url that I set way back in the Permalinks. Here is what I have: (Actual ID page for 2012 Happy Days SUCCESS) (The permalink […]

Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…

iHi, I use this snippet in a plugin; if ( ! ( current_user_can( ‘manage_options’ ) ) ) do something } but problem is, when network activating this on a multi-site installation, I get locked out of admin pages. WP says “You don’t have authority to this page” or something (translating from Swedish). I have, by […]

How to reset wordpress but not plugins and settings

How to mass delete all posts with tags & comments but not plugins. There are some plugins but, Is there any plugin available which deletes all data related to posts like tags, comments etc.? Is it possible in wordpress?

Add user meta after a user has registered and logged In

I have a very simple question . I am building a wordpress site where a after a user is created and logged in , there will be a link where he can click and add more information about him / her (let’s say add Business info ) . I don’t want to spend time in […]