Home > customization > Wordpress Command Question

Wordpress Command Question

March 5Hits:1
Advertisement

Ok would like to learn how to run commands through WP rather than SQL commands

So I have created a text file named delete-non-authors.php to delete authors with no posts

Do I need to add this to a folder before uploading?

What are the permissions to execute this plugin?

Thanks in advance

Answers

Do I need to add this to a folder before uploading?

If the plugin only consists of this single file, then no, a folder is not required(but you can use a folder if you prefer).

What are the permissions to execute this plugin?

If you're talking about folder and file permissions, these are usually 755 for directories and 644 for files.

If that's not what you mean, it's down to your plugin to determine the capabilities required to run/view it.

Hope that helps.

Related Articles

  • Wordpress Command QuestionMarch 5

    Ok would like to learn how to run commands through WP rather than SQL commands So I have created a text file named delete-non-authors.php to delete authors with no posts Do I need to add this to a folder before uploading? What are the permissions to

  • WordPress Category QuestionNovember 19

    I cannot figure out how to use the wp_list_categories function to do what I need it to: <?php if(is_page('realisations')) { ?> <ul id="subpage"> <li><strong>Les secteurs</strong></li> <?php wp_list_categori

  • Access WordPress API Outside of WordPress (command-line PHP)December 14

    I have a PHP script that I need to run as a cron job. However this script needs access to the WP API (get_pages(), get_post_meta() and get_permalink() specifically). I've followed the instructions at http://codex.wordpress.org/Integrating_WordPress_w

  • Wordpress for questions and responses websiteJune 20

    I am using Wordpress to create a Q&A website. The question is returned by the_content. If I store the answers as post meta field array: { [1] => 'first answer', [2] => 'second answer', [3] => 'third answer', ..... } How can I create separte c

  • Wordpress rewrite questionSeptember 14

    I am new here and have a question about URLs in WordPress. The very front-facing portion of my website uses WordPress just so I can use the CMSs and blog for my SEO. I have a real estate portion of the site written in basic PHP and I would like to se

  • Wordpress Update QuestionSeptember 18

    I have one simple question I need update every new update of wordpress script and plugins or i don't need update i ask because every this update can finish with some error ? Thanks. --------------Solutions------------- Yes. Update. It is important. T

  • Mysql command question..

    Mysql command question..October 1

    Can anyone please tell me the mysql command to execute a query to select records and export them into a csv file? Thanks, jsb1022 --------------Solutions------------- Converting txt to csv I found the command to export the data from mysql to a txt fi

  • WordPress Multisite QuestionAugust 14

    I want to add a subdomain to all my WordPress sites in a WP MU. For example, I have: example.com. When adding a new site to be: demo.example.com/newsite1 I don't want to create a new user or WordPress Installation. Is this possible? --------------Sol

  • WordPress Multisite - Questions about select all posts from all network sitesOctober 18

    Someone would tell me how i could do so that all posts published on the websites of my network were published on the main site of the network also? Or more directly, any way of doing a select on which he select all posts of all prefixes wp_2_posts, w

  • LINUX/UNIX basic command questionsDecember 10

    I'm trying to write a single command line that uses netstat and grep to count all connections in a state of "ESTABLISHED" and outputs a single number representing how many connections are currently open to the server. netstat -an | grep ':portno

  • multicore CLI commands questionMay 20

    I have a collection of 150 CLI commands to execute in a file, on my 12 core machine. Running all 150 tasks in the background bogs the system down and I have found by experience that having 12-18 tasks running is optimal. In the past, I simply carved

  • Batch Command QuestionFebruary 9

    I want to make a batch file that designated as a folder name date of a previous day.How can I do? Here is my batch file. Set Tarih1=%date:.=% d:\ cd \ Yeni Klasör md %date:.=% cd %date:.=% thanks in advance. --------------Solutions------------- It's

  • PIC mov command questionOctober 16

    I have a code that prints what's in the memory of my PIC18F4550 to the serial port. I'm trying to do this in two ways but only one is successfull. Can someone enlighten me why Version one (functional, I think atleast..) I've done some initializations

  • WordPress Quick Question . How to Get Parent Link in Submenu in My CodeJanuary 25

    I'm creating a menu walker from foundation 6 but problem is parent link is not click able, so solution might be that if we can get parent link in submenu but have some problem because I'm don't know much in PHP class myfun_walker extends Walker_Nav_M

  • Conditional statements in wordpress themesMarch 27

    I have the following code at the start of my single.php loop that displays the post featured image as a background. <?php $featured_background = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' ); ?> <div class="par

  • Transferring from "Populate" CMS to WordPressMarch 6

    Okay, apologies up front for being such a coding novice. I am transferring a web site (not a blog) from a CMS called Populate over to WordPress, from one hosting to a different hosting. I don't have access to the source files on the current host. (Lo

  • How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?September 19

    I am looking for a solution to reuse the header and footer navigation links (with style, of course) in one of my WordPress website for several other WordPress sites. Please note that I'm trying to share header and footer among WordPress sites, not fr

  • How to benchmark a WordPress installation? August 27

    I'm trying to gather some benchmarking data to determine how well my optimizations to WordPress are fairing. I've found this page on High Traffic Tips but it doesn't contain any data. Are there any tools that benchmark WordPress? Not just how well it

  • What does Wordpress mean by they have full rights to content May 23

    I am pondering publishing my blog. I'm leaning more towards WordPress however, I don't want to worry about WordPress doing whatever they want whenever they want withmy blog because I have signed up for the basic plan (I'm new to blogging so I'm assum

  • How to add custom content under plugin row in WordPress admin plugin list?

    How to add custom content under plugin row in WordPress admin plugin list?March 11

    I'm looking to add a custom message under my plugin in the "Plugins" page, much like the following screenshot: What action or filter should I use? Thank you! --------------Solutions------------- Searching Codex or Google you can find some lists

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.410 s.