Ok with helps it’s working. So theme was ok in front of wordpress but wasn’t able to load in the admin so we changed the previous condition by :
if (!function_exists('get_field') && !is_admin()) {
function get_field()
{
return;
}
function the_field()
{
return;
}
}
but same problem with activation in the admin and it was because I use acf in my functions.php too.
if (!empty(get_post(get_field('login', 'options')))) {
changed in :
if( get_option('login') ) {
Related Posts:
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Update Multiple Post Meta for the Same Post In One call?
- How do you remove plugin edit option?
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- wp_get_post_terms is difference obj model than the one in rest api response
- What are the specifics of WordPress development I need to know? [closed]
- WordPress shows error related to allow_url_fopen
- Redirect to another page using contact form 7? [closed]
- How to show the number of website visitors in my theme
- WordPress custom post type image in RSS
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Theme Functions run a function upon activation or preview
- Code for unique user visit count on every page WordPress
- woocommerce remove coupon link does not work
- need to find duplicated meta value in custom filed and view the posts that have the same value
- how to display recent post by category on home page
- Newbie problem with adding include wp_footer
- How can I find related learndash course id from woocommerce product object?
- Submitting form to PHP
- Rename a folder via HTML POST request
- How to get a post views count using ‘WordPress popular posts’ plugin
- How can I see $post object in frontend from functions.php?
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Change Jobs for WordPress templates
- How to copy data from user profile page (profile.php) to theme customizer
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- How to create post comparison in wordpress
- Disable email notification after change of password
- __(): What if I have to pass in a variable?
- Run WP-CLI using PHP
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin update error message
- How can I make my custom shortcode work in a Custom HTML Widget?
- PHP Deprecated: Non-static method should not be called statically
- Calling function from within functions.php returns unwanted value
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Check if a class exists within a method
- Escape special characters in image link
- force customers to add only single item to card per purchase EDD [closed]
- How to get post URL in the_content filter?
- Write to / remove from default .htaccess file from plugin?
- Auto delete WordPress users according to time
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- Programatically download a plugin
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- How to Use Parameters with a Do_Action Function Within PHP Tags
- Theme my Login plugin, how to update fields
- CSS from textarea in options page to frontend what to do
- How do I pass a post ID to the page URL?
- wp_set_auth_cookie causes 403 error in the wooCommerce checkout
- add image crop function like in wp customizer
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Classified ad website : which solutions to use? [closed]
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Finding the URL to be used to check if plugin is installed with a theme
- Self-serve ad system like Reddit’s for WordPress? [closed]
- Create a plugin from within WordPress
- Call plugin with php function
- What happens when WordPress memory limit is exceeded?
- Add SideBar/Widgets Just Below the Post
- How do I add $_SESSION[”] to my wordpress page?
- How to use the CSS of the WordPress core in the development of my administration page?
- How to use custom Javascript code inside a plugin?
- How to use printf to output two links?
- why need theme,if page builder is there in wordpress [closed]
- Visual Composer: Where do I find the source code of a custom element?
- speed up pagination for huge database
- 2 wordpress site same database
- How to redirect to a page after the form is submitted
- Identify current wordpress theme
- WP Insert Post If user refreshes override new post
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Widgets are not displaying in the admin panel
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Custom Field used to allow a Free Story; no longer works
- How to send new visitor to a splash page for only one time in wordpress?
- Cron job shedules replace?
- Create a form and have custom menu display based on user answers?
- How to wrap image tag into div for post only?
- Can i add custom code in Source in specific page, Header from function.php?
- Problem with conditional woocommerce custom checkout field
- GET web api method from a WordPress PHP script
- Loop carousel slider in wordpress
- Editing Global Variables from Inside Functions
- Posting code inside the post instead of in the template file using shortcode
- conditional tags for the output of a plugin
- Can’t insert files in other inputs
- How to tweak a plugin without preventing it from updating
- Place max_execution_time in plugin [closed]
- wordpress illegal string offset ‘parameter’ error
- how to show selected options drop down menu values in attributes field in after saving post.php
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?