Questions tagged [filesystem]
The filesystem tag has no usage guidance.
129
questions
0
votes
0
answers
25
views
SFTP File Upload Failure
Starting off, I am very new to coding and servers and typically only edit existing code. Recently, I started a new WordPress site to launch an ecom business and I need to edit some of plugins to ...
0
votes
1
answer
38
views
Is there a way to get a path to the theme directory without the server name?
I need to use file_get_contents() in my theme to include an SVG file. As far as I know, an obvious way to do this would be the following:
file_get_contents("https://example.com/wp-content/themes/...
1
vote
0
answers
39
views
WordPress with Bedrock on Pantheon. Is it dangerous to set false on DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS consts?
I have a WordPress project with Bedrock on Pantheon. In the application.php file the DISALLOW_FILE_EDIT and DISALLOW_FILE_MODS consts are true by default. In that case, there are no language options ...
1
vote
0
answers
79
views
Best way to handle multiple assetlinks.json URLs for Multisite?
When running PWA/TWA apps built on WordPress, they require an assetlinks.json file to be served from the root domain of each site. I'm wondering if anyone has come up with a solution to this using ...
1
vote
0
answers
56
views
Why is Wordpress upgrade process not using WP_TEMP_DIR?
I am setting up a special Wordpress deployment that has all dynamically uploaded and modified files stored in a single location.
Wordpress provides constants that allow to modify location of all but ...
0
votes
1
answer
39
views
Media Library Issues
(All plugins disabled) I have some strange issues with the media library. It's an old site that I have been managing for the last 2 years. The site has dated media folders on disk going back to /2010/...
0
votes
0
answers
27
views
Organizing media files (pdf) and searching based on the folders created
I am attempting to find a way to search through sorted PDF files inside the media section of WP. My goal is to be able to set up different search engines within my site that pull from specified ...
0
votes
0
answers
20
views
Condionally/limited emails from system (cantact-form, registration, passwd reset)With
With:
add_filter( 'wp_mail_from', 'my_mail_from' );
function my_mail_from( $email ) {
return "[email protected]";
}
add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
function ...
2
votes
1
answer
203
views
Search with indexing and linking to PDF content
I need to implement a search functionality that makes the content of a PDF file indexable and links directly to the selected content area of the search query.
Is that even possible and what is the way ...
0
votes
1
answer
13
views
Is there a way to natively return the full filesystem path when using $wp_styles?
Looping through global $wp_styles, $wp_styles->registered[$style]->src returns the URL of the resource e.g. https://domain.com/path/to/file/.
I'd like to source the local filesystem path instead ...
0
votes
1
answer
226
views
Hook on opening a media/document
I am trying to find a hook to be able to set a datalayer.push everytime a document is opened.
It could even be something that runs after the document is opened
ex: https://example.com/wp-content/...
0
votes
0
answers
28
views
Wordpress - tracking options
I wanted to ask, how much is it possible to track users when using WP as a CMS. For example, can I see, when users go to certain directories like wp/files or open specific documents like wp/files/docs/...
0
votes
0
answers
84
views
How do I upload my Wordpress code files from previous website onto local host Wordpress website?
I have Wordpress code files from an old website which I downloaded from WP File Manager that I want to look at on my local host. I have downloaded Xampp and set up a local host Wordpress website.
How ...
0
votes
0
answers
318
views
File doesn't exist! in wordpress function.php file while creating new post or page
i have been working on wordpress website, from past two days i am not able to add new posts/pages
while i click add new page or post, below image shows the error
cant able to create new post
cant ...
-1
votes
1
answer
1k
views
wp_temp_dir does not change the /tmp temporary default directory
I have a problem changing the temporary folder. I have have define the new temporary folder using
define( 'WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/' );
before the line
/* That's all, stop ...