How can I force a file download in the WordPress backend?
I would like to add a “Click to download” button to one of my WordPress plugins, and I’m not sure which hook to use. So far, hooking ‘admin_init’ to this code seems to work:
I would like to add a “Click to download” button to one of my WordPress plugins, and I’m not sure which hook to use. So far, hooking ‘admin_init’ to this code seems to work:
Is there any way that i can hard code the custom menu items when first theme installed? I am creating a theme which will automatically make some common pages when installed. So I need to know if I can also add them to WordPress custom menu so client don’t need to add them manually?
Basically, I’m trying to override some files of the Uncode theme. But this is not a theme-specific question: it can be applied to any theme. The Uncode theme has a custom dir 'partials' (/uncode/partials/) that contains some layout elements. On my child theme I created a ‘partials’ folder as well (my-child-theme/partials), but the inner files seem not to be overridden. Is it normal? WP docs say that any file of the same name should be overridable, but is seems that’s not true. Am I doing something wrong?
I’m using wp_login_form() to display login form in a jQuery dialog window.
Why is there a constant notice,
I’ve just put the site up a couple weeks ago and adding some more things to it for my friend however there’s got to be an easier way to lay content out over wordpress. I’ve having a hard time with it even and I’m codding half of it (or at least adding styles, looking at the CSS, ect)
I would like to have a single post on my front page (always the latest), but let normal paging work. So the front page has post 1, the next page should have post 2-11 (1-10 is fine too), then 12-21 or 11-20, and so on. I know I can change the number of posts depending on the context, but setting this to “1” on the homepage means the further pages also show only one post.
Can I prevent enumeration of usernames on my wordpress site? I can see users at the moment using the WPScan tool.
We would like users to be able to upload the post thumbnail when editing posts. How would this be done. I would imagine it would make use of the ajax functions of wordpress.