to have the good path to the file, try this :
$array = file(plugin_dir_path(__FILE__) . "quotes.txt");
Related Posts:
- Use AJAX in shortcode
- Ajax call always returns 0
- 400 bad request on admin-ajax.php only using wp_enqueue_scripts action hook
- Solution to render Shortcodes in Admin Editor
- Include PHP file in Content using [shortcode]
- Shortcode producing headers already sent error
- How to add attributes to a shortcode
- How to display random users with avatars
- wp_get_attachment_image returns different image size
- AJAX handler throws 400 (Bad request) – why?
- ajax live search for post title
- Enabling shortcodes for custom fields
- How to use get_media_embedded_in_content function
- Can shortcodes contain conditional statements? Even without them my shortcode renders blank page
- Shortcode with parameters inside parameters
- Creating a table from shortcode avoiding wpautop for each row
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- Stripping shortcode from custom excerpt function
- how to create shortcode in wordpress
- What is wrong with this Shortcode? I get it in a wrong place inside the content
- Set first oembed in post to a global variable or function
- Formatting post content to exclude gallery
- Remove images from get_the_excerpt
- Shortcode with custom content attribute?
- Using email_exists() wp function in an ajax request
- Problem with extract() with custom shortcode
- Shortcode to insert menu in page body?
- How can I rename the WordPress AJAX URL? [duplicate]
- Using locate-template & shortcodes doesn’t appear to work
- Most efficient way to get custom database records from 20 buttons and 20 tables?
- Displaying a random user with a shortcode
- Passing HTML in WordPress Shortcode arguments
- Adding body class when post contains a specific shortcode
- Display a function using AJAX
- How do I call wp_mail from HTML?
- Function to show only first instance of shortcode
- Display a text message if the shortcode is found?
- Unable to get_the_content(); of a post in WordPress via AJAX
- Ajaxing function in widget class
- Search user metadata with checkboxes via ajax (almost working)
- woocommerce target button with class after ajax update
- creating shortcode to pull json array
- Ajax call theme functions from front
- Custom Shortcode, functions PHP WP_Query loop
- Pass Shortcode Attribute to footer Script
- Super simple shortcode not working
- Detect Safari desktop browser and include the detection in a shortcode
- My simple custom shortcode is not longer working (possibly due to upgrade to WordPress 4.4 ?)
- Display gallery on top before content
- List child pages of specific page using shortcode
- ‘is’ functions and ‘get_query_var’ not working
- How to extract the variables out from “add_shortcode” function?
- Display first name of logged in user?
- How to get specified parent page title in my function
- Possible to display shortcode based on the category?
- WordPress shortcode attributes for database SELECT?
- Ajax not working properly
- Shortcode pagination not advancing
- create shortcode to list users with specific meta key value
- Variable if post is sticky in functions.php
- Having issues with a foreach inside of a shortcode with ACF gallery
- Function call via ajax – can’t figure it out?
- Shortcode inserts paragraphs before and after executing shortcode
- Display post shortcode content in the sidebar?
- WP Ajax Function Always Returning undefined
- How to get the index number of the posts?
- Scripts not appending to element in AJAX call – why?
- Using shortcode content with nested shortcode
- Search filter by Post title OR Meta Title Value [duplicate]
- How can I make a widget shortcode to control all the widgets?
- admin-ajax.php + load-scripts.php hanging for minutes
- Custom shortcodes not inserting into visual composer columns
- How to know which ajax file or function is called for action
- How to search using ajax for exact phrase or words in an input field?
- How to filter $content in shortcode function
- Create a custom taxonomy that will be used to create and filter markers in a Google Map
- Setting youtube size in functions.php
- Multisite Ajax serialize return error [object Object]
- Adding a colorbutton in tinymce dialog with current api
- Create post using Ajax
- Passing variable as add_shortcode argument
- Display gallery on bottom after content
- Add button to kitchen sink toggle
- Excerpts are not displayed by a shortcode on category pages
- WordPress listen to $_POST in functions.php
- WordPress Shortcode function display outside of widget
- check if the user is owner of current page
- shortcode help require
- Load Post into DIV with Ajax
- Optimizing a WordPress site
- Help With Creating Shortcode
- wordpress use single ajax in place of multiple ajax requests in a smarter way
- Use html inside shortcode function
- AJAX error handling for submit function in functions file
- Shotcode argument issues
- Shortcode parse error – wrong syntax
- Exclude category from shortcode
- wp_nonce_field is breaking form for reasons unknown
- echo custom fields with AJAX
- Visual Composer creating own shortcodes with vc_map() to return simple Image